mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 19:59:54 +09:00
General cleanup of DOM traversal code in editor & uploader (should also fix #2303)
This commit is contained in:
parent
7dd3dd3838
commit
b9ea0e65b0
6 changed files with 49 additions and 48 deletions
|
|
@ -70,12 +70,12 @@
|
|||
|
||||
// Load editor info.
|
||||
var editor = $(this);
|
||||
var editor_sequence = editor.data('editor-sequence');
|
||||
var content_key = editor.data('editor-content-key-name');
|
||||
var primary_key = editor.data('editor-primary-key-name');
|
||||
var editor_sequence = editor.data('editorSequence');
|
||||
var content_key = editor.data('editorContentKeyName');
|
||||
var primary_key = editor.data('editorPrimaryKeyName');
|
||||
var insert_form = editor.closest('form');
|
||||
var content_input = insert_form.find('input,textarea').filter('[name=' + content_key + ']');
|
||||
var editor_height = editor.data('editor-height');
|
||||
var editor_height = editor.data('editorHeight');
|
||||
if (editor_height) {
|
||||
editor.css('height', editor_height + 'px');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue