|
|
@ -212,22 +212,23 @@ $(document).ready(function(){
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.onCurrentChange = (item) => {
|
|
|
|
$P.crdnControl.onCurrentChange = (item) => {
|
|
|
|
|
|
|
|
if(!$P.crdnControl.tableRenderComplete){
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($P.crdnControl.tableRenderComplete){
|
|
|
|
|
|
|
|
$P.crdnControl.tableRenderComplete = false;
|
|
|
|
$P.crdnControl.tableRenderComplete = false;
|
|
|
|
if(!item){
|
|
|
|
if(!item){
|
|
|
|
$P.clickCrdnList("", true);
|
|
|
|
$P.clickCrdnList("", true);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);
|
|
|
|
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);
|
|
|
|
}
|
|
|
|
|
|
|
|
$("label[for='table-responsive--${pageName}']").trigger("refreshEnd");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.onRemove = (selected, resp) => {
|
|
|
|
$P.crdnControl.onRemove = (selected, resp) => {
|
|
|
|
if (resp.saved){
|
|
|
|
if (resp.saved){
|
|
|
|
$P.toast.show();
|
|
|
|
$P.toast.show();
|
|
|
|
$P.crdnControl._load();
|
|
|
|
$P.refreshCrdnList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -291,6 +292,10 @@ $(document).ready(function(){
|
|
|
|
$P.clickCrdnList = (dataKey, auto) => {
|
|
|
|
$P.clickCrdnList = (dataKey, auto) => {
|
|
|
|
if(dataKey == ""){
|
|
|
|
if(dataKey == ""){
|
|
|
|
$("#bottomCrdnPlc--${pageName}").val("");
|
|
|
|
$("#bottomCrdnPlc--${pageName}").val("");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(auto){
|
|
|
|
|
|
|
|
$("label[for='table-responsive--${pageName}']").trigger("refreshEnd");
|
|
|
|
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -310,6 +315,8 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
if(!auto){
|
|
|
|
if(!auto){
|
|
|
|
$P.crdnControl.setCurrent(dataKey);
|
|
|
|
$P.crdnControl.setCurrent(dataKey);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("label[for='table-responsive--${pageName}']").trigger("refreshEnd");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|