pari: branch aadk r1087 - in /branches/aadk: ./ config/scripts/astman.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Jun 18 12:47:59 CDT 2007
Author: pari
Date: Mon Jun 18 12:47:58 2007
New Revision: 1087
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1087
Log:
merge 1085 - 'noblank'
Modified:
branches/aadk/ (props changed)
branches/aadk/config/scripts/astman.js
Propchange: branches/aadk/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Jun 18 12:47:58 2007
@@ -1,1 +1,1 @@
-/trunk:1-430,433-449,489-501,505-506,508-510,512-540,542-557,559,561-577,580-586,588-616,618-767,769-1081
+/trunk:1-430,433-449,489-501,505-506,508-510,512-540,542-557,559,561-577,580-586,588-616,618-767,769-1081,1085
Modified: branches/aadk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/scripts/astman.js?view=diff&rev=1087&r1=1086&r2=1087
==============================================================================
--- branches/aadk/config/scripts/astman.js (original)
+++ branches/aadk/config/scripts/astman.js Mon Jun 18 12:47:58 2007
@@ -1398,7 +1398,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