mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 09:44:38 +02:00
Add fix/update for processwire/processwire-issues#1597 using suggested fix provided by @Toutouwai
This commit is contained in:
@@ -349,7 +349,7 @@ $(document).ready(function() {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('image-edit', '.InputfieldCKEditor', function() {
|
$(document).on('image-edit sort-stop', '.InputfieldCKEditor', function() {
|
||||||
// re-initialize CKE when image-edit event triggers (from InputfieldImage.js) via rpsallis
|
// re-initialize CKE when image-edit event triggers (from InputfieldImage.js) via rpsallis
|
||||||
var $editor = $(this).find('.InputfieldCKEditorNormal');
|
var $editor = $(this).find('.InputfieldCKEditorNormal');
|
||||||
$editor.each(function() {
|
$editor.each(function() {
|
||||||
|
File diff suppressed because one or more lines are too long
@@ -127,6 +127,7 @@ function InputfieldImage($) {
|
|||||||
if($sort.val() != n) $sort.val(n).change();
|
if($sort.val() != n) $sort.val(n).change();
|
||||||
});
|
});
|
||||||
$el.removeClass('InputfieldImageSorting');
|
$el.removeClass('InputfieldImageSorting');
|
||||||
|
ui.item.find('.Inputfield').trigger('sort-stop');
|
||||||
},
|
},
|
||||||
update: function(e, ui) {
|
update: function(e, ui) {
|
||||||
$el.trigger('sorted', [ ui.item ]);
|
$el.trigger('sorted', [ ui.item ]);
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user