[FIX] web_editor: summernote: editor fail if at least 10 instance of summernote are create (wrong split to get sumernote instance id)

This commit is contained in:
Christophe Matthieu
2015-07-10 17:00:13 +02:00
parent cebc73ebf9
commit 77d848d4f5
2 changed files with 2 additions and 2 deletions
@@ -48,7 +48,7 @@ define([
if ($target.is('.note-editor, .note-air-editor')) {
$editor = $target;
} else {
$editor = $('[data-note-id="' + list.last($target.attr('id')) + '"]');
$editor = $('[data-note-id="' + list.last($target.attr('id').split('-')) + '"]');
}
return dom.buildLayoutInfo($editor);
@@ -42,7 +42,7 @@ define([
// air mode
if ($editor.hasClass('note-air-editor')) {
var id = list.last($editor.attr('data-note-id'));
var id = list.last($editor.attr('data-note-id').split('-'));
makeFinder = function (sIdPrefix) {
return function () { return $(sIdPrefix + id); };
};