pari: trunk r476 - /trunk/config/scripts/astman.js
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Thu Mar 22 16:40:15 MST 2007
Author: pari
Date: Thu Mar 22 18:40:14 2007
New Revision: 476
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=476
Log:
I dont remember why I wrote it as two functions in the first place
Modified:
trunk/config/scripts/astman.js
Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=476&r1=475&r2=476
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Thu Mar 22 18:40:14 2007
@@ -29,17 +29,17 @@
var dragdata = new Object;
var asterisk_guiTDPrefix = "DID_";
-function gui_feedback(a,b){
- var d = "#DA2804"; // dark reddish brown
+function gui_feedback(a,b,c){
+// a is msg, b is color (optional ), c is display time in milliseconds(optional, default to asterisk_guifbt)
+ if(!b){
+ var b = "#DA2804"; // dark reddish brown
+ }
if(b=='blue'){
- d = "#303BCA"; // dark blue
+ b = "#303BCA"; // dark blue
}else if(b=='green'){
- d = "#448156"; // dark green
- }
- gui_feedbackmsg(a,d);
-}
-
-function gui_feedbackmsg(a,b,c){ // a is message, b is color, c is timeout
+ b = "#448156"; // dark green
+ }
+
if(!c){c = asterisk_guifbt;}
var _f = top._$('feedback_round');
var _g = top._$('feedback');
More information about the asterisk-gui-commits
mailing list