pari: trunk r1085 - /trunk/config/scripts/astman.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Jun 18 12:41:48 CDT 2007
Author: pari
Date: Mon Jun 18 12:41:48 2007
New Revision: 1085
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1085
Log:
'noblank' attribute - If we donot want to have blank values left in config files for some fields
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=1085&r1=1084&r2=1085
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Mon Jun 18 12:41:48 2007
@@ -1395,7 +1395,11 @@
} else if (override || (widgets[x].value != thevalue)) {
if (cat.fieldbyname) {
cat.fieldbyname[src] = widgets[x].value;
- changes += build_action('update', count++, cat.name, src, cat.fieldbyname[src]);
+ if(widgets[x].hasAttribute('noblank') && !widgets[x].value){
+ changes += build_action('delete', count++, cat.name, src, "", thevalue);
+ }else{
+ changes += build_action('update', count++, cat.name, src, cat.fieldbyname[src]);
+ }
} else
cat[src] = widgets[src].value;
}
More information about the asterisk-gui-commits
mailing list