CatalystX-CMS
view release on metacpan or search on metacpan
lib/CatalystX/CMS/tt/static/js/cms.js view on Meta::CPAN
140141142143144145146147148149150151152153154155156157158159160
var handleCancel = function() {
this.cancel();
};
CMS.CreateDialog.render(document.body);
CMS.RenameDialog.render(document.body);
Logger(
"dialogs rendered"
);
}
CMS.lock_timer = function() {
if
(!CMS.LOCK_EXPIRES) {
Logger(
'lock expired'
);
return
;
}
//grab current date
var dateNow = new Date();
//calc milliseconds between dates
var amount = CMS.LOCK_EXPIRES.getTime() - dateNow.getTime();
lib/CatalystX/CMS/tt/static/js/cms.js view on Meta::CPAN
187188189190191192193194195196197198199200201202203204205206207
}
if
(days != 0 || hours != 0) {
out += hours +
" hour"
+((hours!=1)?
"s"
:
""
)+
", "
;
}
if
(days != 0 || hours != 0 || mins != 0) {
out += mins +
" minute"
+((mins!=1)?
"s"
:
""
)+
", "
;
}
out += secs +
" seconds"
;
Dom.get(
'countbox'
).innerHTML=out;
setTimeout(CMS.lock_timer, 1000);
}
}
/* nearly verbatim from
*/
CMS.init_layout = function() {
var Event = YAHOO.util.Event;
var layout = new YAHOO.widget.Layout({
lib/CatalystX/CMS/tt/static/js/cms.js view on Meta::CPAN
286287288289290291292293294295296297298299300301
if
(CMS.USE_LAYOUT) {
CMS.init_layout();
}
if
(CMS.USE_EDITOR) {
CMS.init_yui_editor();
}
else
if
(Dom.get(
'editor'
)) {
CMS.init_plain_editor();
}
CMS.init_admin_links();
CMS.lock_timer();
CMS.init_tree();
}
YAHOO.util.Event.onDOMReady( CMS.setup_page );
( run in 0.334 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )