pari: trunk r751 - in /trunk/config: home.html options.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Tue Apr 24 16:13:48 MST 2007
Author: pari
Date: Tue Apr 24 18:13:48 2007
New Revision: 751
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=751
Log:
Hide other options while forcing change default password
Modified:
trunk/config/home.html
trunk/config/options.html
Modified: trunk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/home.html?view=diff&rev=751&r1=750&r2=751
==============================================================================
--- trunk/config/home.html (original)
+++ trunk/config/home.html Tue Apr 24 18:13:48 2007
@@ -47,7 +47,7 @@
_ll.onclick = parent.Logoff ;
_ll.style.display = "" ;
parent.gui_alert("You are using the default password provided by AsteriskNOW !! \n\n It is strongly recommended that you change your default password ");
- window.location.href="options.html";
+ window.location.href="options.html?forcepassword=yes";
return;
}
Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?view=diff&rev=751&r1=750&r2=751
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Tue Apr 24 18:13:48 2007
@@ -87,6 +87,11 @@
showdiv_statusmessage();
setWindowTitle("Options");
+ if( window.location.href.match("forcepassword=yes") ){
+ var f = _$('userscontent').getElementsByClassName('tab');
+ for (var g=0 ; g < f.length ; g++){ f[g].style.display = 'none'; }
+ }
+
parent.loadscreen(this);
_$('newpass').focus();
}
More information about the asterisk-gui-commits
mailing list