Task #2867 - Online editor: Fixing the button "Save", so it could work for introduction sections too.

skala
Ivan Tcholakov 16 years ago
parent b41a70415a
commit b643c1dace
  1. 6
      main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js
  2. 2
      main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin_compressed.js

@ -666,8 +666,10 @@ FCKSaveCommand.prototype.Execute = function()
{ {
if ( oForm.elements[i].type == 'submit' ) if ( oForm.elements[i].type == 'submit' )
{ {
// Let us check whether the buton is styled, i.e. whether it is "nice". // Let us check whether the button is styled, i.e. whether it is "nice".
if ( oForm.elements[i].getAttribute( 'class' ) ) if ( oForm.elements[i].getAttribute( 'class' )
// A workaround for the introduction sections.
|| oForm.elements[i].getAttribute( 'name' ) == 'intro_cmdUpdate' )
{ {
try try
{ {

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save