1
0
mirror of https://github.com/typecho/typecho.git synced 2025-03-23 11:29:41 +01:00
This commit is contained in:
fen 2013-11-26 17:25:05 +08:00
commit baa324c639
3 changed files with 5 additions and 4 deletions

@ -152,10 +152,11 @@ $(document).ready(function () {
}
});
var input = $('#text'), th = textarea.height();
var input = $('#text'), th = textarea.height(), ph = preview.height();
editor.hooks.chain('enterFakeFullScreen', function () {
th = textarea.height();
ph = preview.height();
$(document.body).addClass('fullscreen');
var h = $(window).height() - toolbar.outerHeight();
@ -174,7 +175,7 @@ $(document).ready(function () {
editor.hooks.chain('exitFullScreen', function () {
$(document.body).removeClass('fullscreen');
textarea.height(th);
preview.css('height', 'auto');
preview.height(ph);
});
editor.run();

@ -173,7 +173,7 @@ $(document).ready(function() {
$(this).removeClass('drag');
},
uploadOpened : function (i, file, len) {
uploadStarted : function (i, file, len) {
fileUploadStart(file.name, 'drag-' + i);
},

@ -176,7 +176,7 @@ $(document).ready(function() {
$(this).removeClass('drag');
},
uploadOpened : function (i, file, len) {
uploadStarted : function (i, file, len) {
fileUploadStart(file.name, 'drag-' + i);
},