Changeset 328

Show
Ignore:
Timestamp:
2007-05-27 16:44:38 (20 months ago)
Author:
alfonsoml
Message:

Fix for #493, the submit method of the container form can be hidden due to a button named that way, so try to detect it.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/commandclasses/fck_othercommands.js

    r324 r328  
    169169 
    170170        // Submit the form. 
    171         oForm.submit() ; 
     171        // If there's a button named "submit" then the form.submit() function is masked and 
     172        // can't be called in Mozilla, so we call the click() method of that button. 
     173        if ( typeof( oForm.submit ) == 'function' ) 
     174                oForm.submit() ; 
     175        else 
     176                oForm.submit.click() ; 
    172177} 
    173178 
  • FCKeditor/trunk/_whatsnew.html

    r327 r328  
    105105                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/82">#82</a>] [<a target="_blank" href="http://dev.fckeditor.net/ticket/359">#359</a>] &lt;object&gt; and &lt;embed&gt; tags are not anymore 
    106106                        lost in IE.</li> 
     107                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/493">#493</a>] If the containing 
     108                        form had a button named "submit" the "Save" command didn't work in Firefox.</li> 
    107109        </ul> 
    108110        <h3>