ajax调用未在alfresco displayprompt内被调用
我们在文档库中编写了自定义doclib操作;单击自定义链接时,会调用“onManifestAsset”操作(失败时),然后会提示弹出窗口中的“确定”和“取消”按钮。单击“确定”按钮时,不会调用另一个ajax调用ajax调用未在alfresco displayprompt内被调用,alfresco,alfresco-share,Alfresco,Alfresco Share,我们在文档库中编写了自定义doclib操作;单击自定义链接时,会调用“onManifestAsset”操作(失败时),然后会提示弹出窗口中的“确定”和“取消”按钮。单击“确定”按钮时,不会调用另一个ajax调用 YAHOO.Bubbling.fire("registerAction", { actionName: "onManifestAsset", fn: function onManifestAsset(
YAHOO.Bubbling.fire("registerAction",
{
actionName: "onManifestAsset",
fn: function onManifestAsset(file) {
this.modules.actions.genericAction(
{
success:
{
message: this.msg("success")
},
failure:
{
callback :
{
scope: this,
fn: function(object)
{
Alfresco.util.PopupManager.displayPrompt(
{
text: "Your zip file does not include a metadata spreadsheet;",
buttons: [
{
text: "Ok",
handler: function()
{
this.destroy();
console.log("...start::::::it is normal zip without meta data template:")
//its coming here but below ajax is not getting called when I click ok button
Alfresco.util.Ajax.request(
{
url: Alfresco.constants.PROXY_URI+"xxxxx/manifestZIP?nodeRef="+file.nodeRef,
method: "GET",
successCallback:
{
fn: function dlA_onActionDetails_refreshSuccess(response) {
Alfresco.util.PopupManager.displayMessage({
text: "Success"
});
},
scope: this
},
failureMessage: this.msg("message.delete.failure", ".......")
});
}
},
{
text: "Cancel",
handler: function()
{
this.destroy();
},
isDefault: true
}
]
});
}
}
},
webscript:
{
name: "xxxx/extractAsset?nodeRef={nodeRef}",
stem: Alfresco.constants.PROXY_URI,
method: Alfresco.util.Ajax.GET,
params:
{
nodeRef: file.nodeRef
}
},
config:
{
}
});
}
})
浏览器控制台中有错误吗?控制台中没有错误