2010-07-07 11:30:04 +07:00
|
|
|
function ad_deferRenderBorderLayout(uuid, timeout) {
|
2013-02-18 13:33:38 +07:00
|
|
|
try {
|
|
|
|
var meta = zk.Widget.$(uuid);
|
|
|
|
if (meta) {
|
|
|
|
setTimeout("_ad_deferBDL('"+uuid+"')", timeout);
|
|
|
|
}
|
|
|
|
} catch (err) {
|
|
|
|
if (console) console.log(err);
|
2010-07-07 11:30:04 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-18 13:33:38 +07:00
|
|
|
function _ad_deferBDL(uuid) {
|
|
|
|
try {
|
|
|
|
var cmp = zk.Widget.$(uuid);
|
|
|
|
if (cmp) { cmp.resize(); }
|
|
|
|
} catch (err) {
|
|
|
|
if (console) console.log(err);
|
|
|
|
}
|
2010-07-07 11:30:04 +07:00
|
|
|
}
|
|
|
|
|
2012-08-22 16:45:31 +07:00
|
|
|
function _ad_closeBuble(link) {
|
2013-02-18 13:33:38 +07:00
|
|
|
try {
|
|
|
|
var parent = link.parentsUntil("simileAjax-bubble-contentContainer");
|
|
|
|
var btn = parent.next();
|
|
|
|
btn.click();
|
|
|
|
} catch (err) {
|
|
|
|
if (console) console.log(err);
|
|
|
|
}
|
2010-07-07 11:30:04 +07:00
|
|
|
}
|
|
|
|
|
2013-02-18 13:33:38 +07:00
|
|
|
function scrollToRow(uuid){
|
|
|
|
try {
|
|
|
|
var cmp = zk.Widget.$(uuid);
|
|
|
|
if (cmp) {
|
|
|
|
cmp.scrollIntoView();
|
|
|
|
cmp.focus();
|
|
|
|
}
|
|
|
|
} catch (err) {
|
|
|
|
if (console) console.log(err);
|
|
|
|
}
|
2010-07-07 11:30:04 +07:00
|
|
|
}
|