Changeset 3744:6abafffe0db8
- Timestamp:
- 03/30/18 07:12:59 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcLegacyEditor/js/_post_editor.js
r3709 r3744 52 52 } 53 53 54 $('#comments').onetabload(function() { 55 // Remove required attribut from #comment_content as textarea might be not more focusable 56 if (dotclear.legacy_editor_tags_context[dotclear.legacy_editor_context].indexOf('#comment_content') !== -1) { 57 $('#comment_content').removeAttr('required'); 58 } 59 }); 60 54 61 $('#edit-entry').onetabload(function() { 55 62 56 63 // Remove required attribut from #post_content in XHTML mode as textarea is not more focusable 57 64 if (formatField.value == 'xhtml') { 58 $('#post_content').removeAttr('required'); 65 if (dotclear.legacy_editor_tags_context[dotclear.legacy_editor_context].indexOf('#post_content') !== -1) { 66 $('#post_content').removeAttr('required'); 67 } 59 68 } 60 69
Note: See TracChangeset
for help on using the changeset viewer.