Changeset 5723


Ignore:
Timestamp:
12/05/09 03:27:49 (2 years ago)
Author:
PaulHarvey
Message:

Item2453: Actually, this bug was caused by incorrect check-for-TinyMCE code, not a jquery defect.

Location:
trunk/NatEditPlugin/pub/System/NatEditPlugin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/NatEditPlugin/pub/System/NatEditPlugin/edit.js

    r5714 r5723  
    33function fixHeightOfPane(){} 
    44(function($){function submitEditForm(script,action){var topicText=$("#topic").val();$("#savearea").val(topicText);if(typeof(beforeSubmitHandler)=='function'){if(beforeSubmitHandler(script,action)===false){return false;}} 
    5 var editForm=$(document.getElementById('EditForm'));if(action=='add form'){editForm.find("input[name='submitChangeForm']").val(action);} 
     5var editForm=$('#EditForm');if(action=='add form'){editForm.find("input[name='submitChangeForm']").val(action);} 
    66editForm.find("input[name='action_preview']").val('');editForm.find("input[name='action_save']").val('');editForm.find("input[name='action_checkpoint']").val('');editForm.find("input[name='action_addform']").val('');editForm.find("input[name='action_replaceform']").val('');editForm.find("input[name='action_cancel']").val('');editForm.find("input[name='action_"+action+"']").val('foobar');if(typeof(foswikiStrikeOne)!='undefined'){foswikiStrikeOne(editForm[0]);} 
    77if((typeof(tinyMCE)==='object')&&(typeof(tinyMCE.activeEditor)==='object')&&(tinyMCE.activeEditor!==null)){tinyMCE.activeEditor.onSubmit.dispatch();} 
  • trunk/NatEditPlugin/pub/System/NatEditPlugin/edit.uncompressed.js

    r5714 r5723  
    1515      } 
    1616    } 
    17     /* SMELL: Why doesn't this work when ?action=form? Item2453 
    18        var editForm = $('#EditForm'); */ 
    19     var editForm = $(document.getElementById('EditForm')); 
     17    var editForm = $('#EditForm'); 
    2018    if (action == 'add form') { 
    2119      editForm.find("input[name='submitChangeForm']").val(action); 
Note: See TracChangeset for help on using the changeset viewer.