2014-03-03 54 views
0

當我使用jTable提交自定義jQueryUI模式時,我無法提升formSubmitting事件。以下是jqeuryui模態代碼:jTable提交表單提交自定義jQueryUI模式

$("#editDialog").dialog({ 
    height: 600, 
    width: 500, 
    autoOpen: false, 
    modal: true, 
    show: { 
     effect: "fade", 
     duration: 250 
    }, 
    hide: { 
     effect: "fade", 
     duration: 250 
    }, 
    buttons: { 
     Cancel: function() { 
      $(this).dialog("close"); 
     }, 
     Save: function() { 
      $(this).find("form").submit(); 
      $(this).dialog('close'); 
     } 
    }, 
    close: function() { 
     //allFields.val("").removeClass("ui-state-error"); 
    } 
}); 

任何有關如何實現此目的的建議,我都非常感謝。

回答

0

不能。最後在自定義點擊事件上顯示自定義模式。