Merge remote-tracking branch 'upstream/pull/4886'
This commit is contained in:
commit
b1472a4a9a
1 changed files with 0 additions and 2 deletions
|
@ -41,7 +41,6 @@ $(document).ready(function () {
|
||||||
$(".richtext_dopreview").click(function (event) {
|
$(".richtext_dopreview").click(function (event) {
|
||||||
var editor = $(this).parents(".richtext_container").find("textarea");
|
var editor = $(this).parents(".richtext_container").find("textarea");
|
||||||
var preview = $(this).parents(".richtext_container").find(".richtext_preview");
|
var preview = $(this).parents(".richtext_container").find(".richtext_preview");
|
||||||
var width = editor.outerWidth() - preview.outerWidth() + preview.width();
|
|
||||||
var minHeight = editor.outerHeight() - preview.outerHeight() + preview.height();
|
var minHeight = editor.outerHeight() - preview.outerHeight() + preview.height();
|
||||||
|
|
||||||
if (preview.contents().length === 0) {
|
if (preview.contents().length === 0) {
|
||||||
|
@ -56,7 +55,6 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
editor.hide();
|
editor.hide();
|
||||||
preview.width(width);
|
|
||||||
preview.css("min-height", minHeight + "px");
|
preview.css("min-height", minHeight + "px");
|
||||||
preview.show();
|
preview.show();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue