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
This commit is contained in:
Ingo Schommer 2010-04-25 00:50:52 +00:00 committed by Sam Minnee
parent 147bdee8ea
commit e2a5021def

View File

@ -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'));
});