pari: trunk r637 - in /trunk/config: ./ stylesheets/
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Mon Apr 9 16:17:55 MST 2007
Author: pari
Date: Mon Apr 9 18:17:55 2007
New Revision: 637
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=637
Log:
Moved the onfocus color change from JS to CSS - IE does not support CSS :focus, but who cares
Modified:
trunk/config/backup.html
trunk/config/home.html
trunk/config/incoming.html
trunk/config/localexts.html
trunk/config/meetme.html
trunk/config/numberplan.html
trunk/config/options.html
trunk/config/queues.html
trunk/config/record.html
trunk/config/stylesheets/schwing.css
trunk/config/trunks.html
trunk/config/users.html
trunk/config/voicemail.html
Modified: trunk/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/backup.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/backup.html (original)
+++ trunk/config/backup.html Mon Apr 9 18:17:55 2007
@@ -29,9 +29,6 @@
function localajaxinit() {
setWindowTitle("Backup");
showdiv_statusmessage();
- var _nn = _$('newbkp_name') ;
- _nn.onfocus = function(){this.className = 'input9_hilight';}
- _nn.onblur = function(){this.className = 'input9';}
parent.astmanEngine.run_tool(asterisk_guiSysInfo, callback = function() {
var opt = { method: 'get', asynchronous: true,
Modified: trunk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/home.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/home.html (original)
+++ trunk/config/home.html Mon Apr 9 18:17:55 2007
@@ -145,11 +145,6 @@
}
function localinit() {
- var un = _$('username') ; var pwd = _$('secret') ;
- un.onfocus = function(){this.className = 'input9_hilight';}
- un.onblur = function(){this.className = 'input9';}
- pwd.onfocus = function(){this.className = 'input9_hilight';}
- pwd.onblur = function(){this.className = 'input9';}
top.document.title = "Asterisk GUI (Beta) -- Home";
localajaminit();
}
Modified: trunk/config/incoming.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/incoming.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/incoming.html (original)
+++ trunk/config/incoming.html Mon Apr 9 18:17:55 2007
@@ -32,7 +32,7 @@
var old_incomingrule, old_fromprovider ;
var editstatus , edit_pattern, edit_DIDtrunk, edit_action, edit_priority ;
var listOfExtensions = [] ; // to store all the list of extensions to be displayed in the select menu
-var focus_fields = new Array('incomingrule','frompattern','fromprovider','toextension');
+
user_callbacks.format = function(t, x) {
var tmp = asterisk_guiTDPrefix + t.name ;
@@ -450,10 +450,7 @@
function localajaxinit() {
showdiv_statusmessage();
setWindowTitle("Incoming Calls");
- for (var x =0; x < focus_fields.length; x++ ) {
- _$(focus_fields[x]).onfocus = function(){this.className = 'input9_hilight';}
- _$(focus_fields[x]).onblur = function(){this.className = 'input9';}
- }
+
parent.astmanEngine.config2list("users.conf", _$('users'), new Array(), user_callbacks);
}
Modified: trunk/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/localexts.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/localexts.html (original)
+++ trunk/config/localexts.html Mon Apr 9 18:17:55 2007
@@ -29,7 +29,7 @@
var usercallbacks = new Object;
var fieldnames = ['allow_aliasextns', 'allow_an_extns', 'callwaiting', 'cancel', 'hasagent', 'hasdirectory', 'hasiax', 'hasmanager', 'hassip', 'hasvoicemail', 'localextenlength', 'save', 'threewaycalling', 'userbase', 'vmsecret'];
var widgets = {};
-var focus_fields = new Array('localextenlength','userbase','vmsecret');
+
function tosetup(){
parent.window.location.href = "./setup/install.html";
@@ -82,10 +82,6 @@
for (var x =0 ; x < fieldnames.length ; x++ ) {
widgets[fieldnames[x]] = _$(fieldnames[x]);
widgets[fieldnames[x]].disabled = true;
- }
- for (var x =0; x < focus_fields.length; x++ ) {
- widgets[focus_fields[x]].onfocus = function(){this.className = 'input9_hilight';}
- widgets[focus_fields[x]].onblur = function(){this.className = 'input9';}
}
add_event( _$('localextenlength') , 'change' , update_spae ) ;
Modified: trunk/config/meetme.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/meetme.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/meetme.html (original)
+++ trunk/config/meetme.html Mon Apr 9 18:17:55 2007
@@ -33,7 +33,7 @@
var usercallbacks = new Object;
var meetmecallbacks = { };
var fieldnames = ['announce', 'cancel', 'delete', 'menu', 'music', 'name', 'newitem', 'quiet', 'record', 'room', 'save', 'setmarked', 'waitmarked'];
-var focus_fields = new Array('name','room', 'pin','pinadmin');
+
function changed_extension() {
var app;
@@ -372,10 +372,7 @@
widgets[fieldnames[x]] = _$(fieldnames[x]);
widgets[fieldnames[x]].disabled = true;
}
- for (var x =0; x < focus_fields.length; x++ ) {
- _$( focus_fields[x] ).onfocus = function(){this.className = 'input8_hilight';}
- _$( focus_fields[x] ).onblur = function(){this.className = 'input8';}
- }
+
enable_disable_fields(0);
add_event( _$('pin') , 'keyup', enable_save_cancel );
Modified: trunk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/numberplan.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/numberplan.html (original)
+++ trunk/config/numberplan.html Mon Apr 9 18:17:55 2007
@@ -32,7 +32,7 @@
var numplan_callbacks = { };
var numberplansdata = { };
var fieldnames = ['cancel', 'delete', 'include', 'name', 'new', 'plancomment', 'save'];
-var focus_fields = ['beginswith', 'followedby', 'pattern', 'plancomment', 'prepend', 'rulename', 'strip', 'trunks'];
+
//var default_numberplan = 0;
var isnewrule ;
var iscustom ;
@@ -540,10 +540,7 @@
widgets[fieldnames[x]] = _$(fieldnames[x]);
widgets[fieldnames[x]].disabled = true;
}
- for (var x =0; x < focus_fields.length; x++ ) {
- _$(focus_fields[x]).onfocus = function(){this.className = 'input9_hilight';}
- _$(focus_fields[x]).onblur = function(){this.className = 'input9';}
- }
+
_$('message_text').innerHTML ="Saving Changes...";
config2json('users.conf', 1, trunks_loaded ) ;
Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Mon Apr 9 18:17:55 2007
@@ -27,7 +27,6 @@
<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
<script>
var current_username = parent.document.getElementById('login_name').value;
-var focus_fields = new Array('newpass','newpass_rep');
function askforRelogin(originalRequest){
if ( originalRequest.responseText.match("Success") ) {
@@ -88,10 +87,6 @@
showdiv_statusmessage();
setWindowTitle("Options");
- for (var x =0; x < focus_fields.length; x++ ) {
- _$(focus_fields[x]).onfocus = function(){this.className = 'input9_hilight';}
- _$(focus_fields[x]).onblur = function(){this.className = 'input9';}
- }
parent.loadscreen(this);
_$('newpass').focus();
}
Modified: trunk/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/queues.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/queues.html (original)
+++ trunk/config/queues.html Mon Apr 9 18:17:55 2007
@@ -37,7 +37,7 @@
var queueagents = new Array;
var queuenames = new Array;
var fieldnames = ['agents', 'autofill', 'autopause', 'cancel', 'delete', 'fullname', 'joinempty', 'leavewhenempty', 'maxlen', 'musicclass', 'name', 'new', 'reportholdtime', 'save', 'strategy', 'timeout', 'wrapuptime'];
-var focus_fields = ['fullname', 'maxlen', 'musicclass', 'name', 'strategy', 'timeout', 'wrapuptime'];
+
var k =0;
var j = -1;
var extensions_conf_qs = new Array;
@@ -438,10 +438,7 @@
widgets[fieldnames[x]] = $(fieldnames[x]);
widgets[fieldnames[x]].disabled = true;
}
- for (var x =0; x < focus_fields.length; x++ ) {
- widgets[focus_fields[x]].onfocus = function(){this.className = 'input8_hilight';}
- widgets[focus_fields[x]].onblur = function(){this.className = 'input8';}
- }
+
adstatus = "hidden";
parent.astmanEngine.config2list("musiconhold.conf", $('musicclass'), new Array(), mohcallbacks);
$('save_q').disabled = true;
Modified: trunk/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/record.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/record.html (original)
+++ trunk/config/record.html Mon Apr 9 18:17:55 2007
@@ -26,16 +26,12 @@
<link href="stylesheets/rico.css" media="all" rel="Stylesheet" type="text/css" />
<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
<script>
-var focus_fields = new Array('newvmenu_name','newvmenu_ext');
+
var callbacks = {};
function localajaxinit(){
showdiv_statusmessage();
setWindowTitle("Record a Menu");
- for (var x =0; x < focus_fields.length; x++ ) {
- _$(focus_fields[x]).onfocus = function(){this.className = 'input8_hilight';}
- _$(focus_fields[x]).onblur = function(){this.className = 'input8';}
- }
_$('message_text').innerHTML = "Please wait while the system <BR> Calls the specified Extension ... ";
parent.astmanEngine.config2list("users.conf", _$('newvmenu_ext'), new Array, callbacks);
}
Modified: trunk/config/stylesheets/schwing.css
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/stylesheets/schwing.css?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/stylesheets/schwing.css (original)
+++ trunk/config/stylesheets/schwing.css Mon Apr 9 18:17:55 2007
@@ -76,6 +76,10 @@
padding : 0px 0px 0px 3px;
}
+.input8:focus {
+ background-color:#FFC58A;
+}
+
.input8_hilight {
background-color:#FFC58A;
font-size: 8pt;
@@ -93,6 +97,10 @@
border-right-color:#666;
border-bottom-color:#666;
*/
+}
+
+.input9:focus {
+ background-color:#FFC58A;
}
.input9_hilight {
Modified: trunk/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/trunks.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/trunks.html (original)
+++ trunk/config/trunks.html Mon Apr 9 18:17:55 2007
@@ -37,8 +37,6 @@
'name','new','port','provider','registeriax','registersip','save','secret','trunkname','trunkstyleanalog','trunkstylecustomvoip',
'trunkstylevoip','username','zapchan'];
var provfieldnames = ['providerdesc', 'providerlogo'];
-var focus_fields = ['callerid','contact','custom_trunkname','customvoip_host','customvoip_name','customvoip_protocol','customvoip_secret','customvoip_username',
- 'fromdomain','fromuser','insecure','port','provider','secret','username'] ;
var isnewtrunk;
var dids_array = [];
var old_trunkname;
@@ -491,10 +489,7 @@
provwidgets[provfieldnames[x]] = _$(provfieldnames[x]);
provwidgets[provfieldnames[x]].disabled = true;
}
- for (var x =0; x < focus_fields.length; x++ ) {
- $(focus_fields[x]).onfocus = function(){this.className = 'input8_hilight';}
- $(focus_fields[x]).onblur = function(){this.className = 'input8';}
- }
+
parent.astmanEngine.config2list("zapscan.conf", _$('zapchan'), new Array(), phonecallbacks);
}
Modified: trunk/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/users.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/users.html (original)
+++ trunk/config/users.html Mon Apr 9 18:17:55 2007
@@ -32,7 +32,7 @@
var callbacks = new Object;
var extencallbacks = new Object;
var fieldnames = ['callwaiting' ,'cancel' ,'cid_number' ,'context' ,'delete' ,'email' ,'fullname' ,'group' ,'hasagent' ,'hasdirectory' ,'hasiax' ,'hasmanager' ,'hassip' ,'hasvoicemail' ,'host' ,'mailbox' ,'name' ,'new' ,'save' ,'secret' ,'threewaycalling' ,'vmsecret' ,'zapchan', 'registeriax', 'registersip'];
-var focus_fields = ['cid_number' ,'context' ,'email' ,'fullname' ,'name' ,'secret' ,'vmsecret' ,'zapchan'] ;
+
var localextenlength = 4;
var allow_aliasextns = "no";
var allow_an_extns = "no" ;
@@ -302,10 +302,7 @@
widgets[fieldnames[x]] = _$(fieldnames[x]);
widgets[fieldnames[x]].disabled = true;
}
- for (var x =0; x < focus_fields.length; x++ ) {
- widgets[focus_fields[x]].onfocus = function(){this.className = 'input8_hilight';}
- widgets[focus_fields[x]].onblur = function(){this.className = 'input8';}
- }
+
config2json('zapscan.conf', 1, analoglines_loaded ) ;
//parent.astmanEngine.config2list("zapscan.conf", _$('zapchan'), new Array(), phonecallbacks);
}
Modified: trunk/config/voicemail.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/voicemail.html?view=diff&rev=637&r1=636&r2=637
==============================================================================
--- trunk/config/voicemail.html (original)
+++ trunk/config/voicemail.html Mon Apr 9 18:17:55 2007
@@ -37,7 +37,6 @@
var voicemailcallbacks = new Object;
var localextenlength;
var vmfields = ['attach' ,'attachfmt' ,'cancel' ,'emailonly' ,'envelope' ,'maxgreet' ,'maxmessage' ,'maxmsg' ,'minmessage' ,'operator' ,'review' ,'save' ,'saycid' ,'sayduration'];
-var focus_fields = ['attachfmt', 'maxgreet', 'maxmessage', 'maxmsg', 'minmessage', 'name'];
var fields = new Array('name');
@@ -286,10 +285,7 @@
widgets[fields[x]] = _$(fields[x]);
widgets[fields[x]].disabled = true;
}
- for (var x =0; x < focus_fields.length; x++ ) {
- _$(focus_fields[x]).onfocus = function(){this.className = 'input8_hilight';}
- _$(focus_fields[x]).onblur = function(){this.className = 'input8';}
- }
+
parent.astmanEngine.config2list("voicemail.conf", _$('hiddenvoicemail'), vmwidgets, voicemailcallbacks);
}
More information about the asterisk-gui-commits
mailing list