mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-21 06:42:28 +01:00
chg(forums): optimization preview ui
This commit is contained in:
@@ -292,6 +292,12 @@
|
||||
});
|
||||
$('.md-footer').append(cbtn);
|
||||
$compile($('.md-footer').contents())($scope);
|
||||
},
|
||||
onPreview: function (e) {
|
||||
$('.md-footer').css('display', 'none');
|
||||
},
|
||||
onPreviewEnd: function (e) {
|
||||
$('.md-footer').css('display', 'block');
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -360,7 +366,6 @@
|
||||
|
||||
e.setContent(r.content);
|
||||
var ele = $('#' + e.$editor.attr('id') + ' .md-footer');
|
||||
mtDebug.info(ele);
|
||||
|
||||
angular.element(ele).addClass('text-right');
|
||||
angular.element(ele[0].childNodes[0]).addClass('btn-width-80');
|
||||
@@ -374,6 +379,14 @@
|
||||
});
|
||||
ele.append(cbtn);
|
||||
$compile(ele.contents())($scope);
|
||||
},
|
||||
onPreview: function (e) {
|
||||
var ele = $('#' + e.$editor.attr('id') + ' .md-footer');
|
||||
ele.css('display', 'none');
|
||||
},
|
||||
onPreviewEnd: function (e) {
|
||||
var ele = $('#' + e.$editor.attr('id') + ' .md-footer');
|
||||
ele.css('display', 'block');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user