// this file registers any misc callbacks/widget events for newdoc
// this is used for lightboxes to highjack the alert messages when they are
Scribd.alert_highjack = function(lightbox_id, on_alert) {
var old_render = Scribd.Alerts.render;
Scribd.Alerts.render = function() {
if (Scribd.Lightbox.current().id == lightbox_id) {
on_alert.apply(null, arguments);
old_render.apply(this, arguments);
Scribd.UI.dispatch = function(e, actions, context, event_prefix, disable_stop) {
if (!actions.hasOwnProperty(name)) continue;
source
Комментариев нет:
Отправить комментарий