Skip to content
Snippets Groups Projects
Commit def5f68b authored by Hai-Nam Nguyen's avatar Hai-Nam Nguyen
Browse files

Issue #2279359 by jcisio: Fixed Teaser does not work with jQuery 1.6+ (fix wrong logic)

parent 8ad91a9b
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ Drupal.ckeditorOn = function(textarea_id) {
if (teaser) {
var ch_checked = teaser.checkbox.attr('checked');
var tv = teaser.textarea.val();
if (teaser.textarea.attr("disabled") !== true || teaser.textarea.attr("disabled") !== 'disabled') {
if (teaser.textarea.attr("disabled") !== true && teaser.textarea.attr("disabled") !== 'disabled') {
$("#" + textarea_id).val(tv + '\n<!--break-->\n' + $("#" + textarea_id).val());
teaser.textarea.val('');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment