From e2a5021def233e150485acf746550def54f01aaa Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 25 Apr 2010 00:50:52 +0000 Subject: [PATCH] MINOR Fixed js applying to non-tinymce textarea fields in ModelAdmin.js (fixes #5453) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@103447 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/ModelAdmin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/javascript/ModelAdmin.js b/javascript/ModelAdmin.js index ef47bb71..2eb0eda5 100644 --- a/javascript/ModelAdmin.js +++ b/javascript/ModelAdmin.js @@ -183,7 +183,7 @@ $(document).ready(function() { var form = $('#right form'); var formAction = form.attr('action') + '?' + $(this).fieldSerialize(); - $('#right form textarea').each(function(){ + $('#right form textarea.htmleditor').each(function(){ tinyMCE.execCommand('mceRemoveControl', false, $(this).attr('id')); }); @@ -213,7 +213,7 @@ $(document).ready(function() { return false; } - $('#right form textarea').each(function(){ + $('#right form textarea.htmleditor').each(function(){ tinyMCE.execCommand('mceRemoveControl', false, $(this).attr('id')); }); @@ -320,7 +320,7 @@ $(document).ready(function() { }, goBack: function() { - $('#right form textarea').each(function(){ + $('#right form textarea.htmleditor').each(function(){ tinyMCE.execCommand('mceRemoveControl', false, $(this).attr('id')); }); @@ -337,7 +337,7 @@ $(document).ready(function() { }, goForward: function() { - $('#right form textarea').each(function(){ + $('#right form textarea.htmleditor').each(function(){ tinyMCE.execCommand('mceRemoveControl', false, $(this).attr('id')); });