From: Matteo Nastasi (mop) Date: Wed, 22 Jul 2009 19:07:47 +0000 (+0000) Subject: class extention for opaque or not notify X-Git-Tag: 3.0.0~71 X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=brisk.git;a=commitdiff_plain;h=2fbcd2ff34fb9d165906ed1dccebf87bb21e5336 class extention for opaque or not notify --- diff --git a/web/commons.js b/web/commons.js index 3995331..51c081d 100644 --- a/web/commons.js +++ b/web/commons.js @@ -360,6 +360,11 @@ function act_about() send_mesg("about"); } +function act_classific() +{ + send_mesg("classific"); +} + function act_roadmap() { send_mesg("roadmap"); @@ -551,7 +556,7 @@ slowimg.prototype = { } -function notify(st, text, tout, butt, w, h) +function notify_ex(st, text, tout, butt, w, h, is_opa) { var clo, box; var t = this; @@ -584,7 +589,11 @@ function notify(st, text, tout, butt, w, h) cont.innerHTML = text; box = document.createElement("div"); - box.className = "notify"; + if (is_opa) + box.className = "notify_opaque"; + else + box.className = "notify"; + box.style.zIndex = 200; box.style.width = w+"px"; box.style.marginLeft = -parseInt(w/2)+"px"; @@ -605,7 +614,8 @@ function notify(st, text, tout, butt, w, h) } -notify.prototype = { + +notify_ex.prototype = { ancestor: null, st: null, notitag: null, @@ -632,6 +642,17 @@ notify.prototype = { this.obj.unblock(); } } + + +notify.prototype = notify_ex.prototype; // Define sub-class +notify.prototype.constructor = notify; +notify.baseConstructor = notify_ex; +notify.superClass = notify_ex.prototype; + +function notify(st, text, tout, butt, w, h) +{ + notify_ex.call(this, st, text, tout, butt, w, h, false); +} function $(id) {