MyPage.Views.Content = Backbone.View.extend({
loadPage: function() {
//populate jquery grid
}
addUserPhoto:function(){
//open jquery ui modal form where user can
//upload image.
}
})
jquery ui对话框关闭
$('#dialog').html('');
$('#dialog').dialog('close');
我想loadPage
在 jquery ui 对话框关闭时调用该函数。我试过这个
addUserPhoto:function(){
//open jquery ui modal form where user can
//upload image.
//close dialog
this.loadPage();
}
但这并没有调用该loadPage
函数。