only add the splitter once

pull/1/head
Pierre Bondoerffer 7 years ago
parent 4026994310
commit 9dce40f3af
No known key found for this signature in database
GPG Key ID: C0C7C0C5063F2236

@ -388,6 +388,7 @@ define([
}); });
// add the splitter // add the splitter
if (!$iframe.has('.cp-splitter').length) {
var $preview = $iframe.find('#previewContainer'); var $preview = $iframe.find('#previewContainer');
var splitter = $('<div>', { var splitter = $('<div>', {
'class': 'cp-splitter' 'class': 'cp-splitter'
@ -412,6 +413,7 @@ define([
$target.css('width', (w - x + evt.pageX) + 'px'); $target.css('width', (w - x + evt.pageX) + 'px');
}); });
}); });
}
Cryptpad.removeLoadingScreen(); Cryptpad.removeLoadingScreen();
setEditable(true); setEditable(true);

Loading…
Cancel
Save