CatalystX-CMS

 view release on metacpan or  search on metacpan

lib/CatalystX/CMS/tt/static/js/cms.js  view on Meta::CPAN

140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
    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

187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
        }
        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

286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
    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 )