0
我需要在用戶選擇一個組合框後顯示一個ext lib對話框(我爲XPage使用BootStrap的Select2)。 The 提醒碼功能工作正常,但不是XSP.openDialog不是。 我發現了一箇舊的計算器question about this但我不明白我該如何解決我的問題。有任何想法嗎?Bootstrap Select2打開一個加載對話框onStart部分刷新
TNX很多
$(document).ready(
function() {
x$("#{id:comboBox1}").select2().on("change", function(e) {
XSP.allowSubmit();
XSP.partialRefreshPost("#{id:divView}",{
onStart: function() {
// do something when the partial update is finished
//alert("start...") -- this WORK
XSP.openDialog("#{id:dialog1}"); //this doesn't work
},
onComplete: function() {
// do something when the partial update is finished
//alert("stop...") -- THIS WORK
XSP.closeDialog("#{id:dialog1}"); //this doesn't work
}
});
})
}
);