pari: branch asterisknow r1086 - in /branches/asterisknow: ./ config/scripts/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Jun 18 12:45:05 CDT 2007


Author: pari
Date: Mon Jun 18 12:45:04 2007
New Revision: 1086

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1086
Log:
merge 1085 - 'noblank'

Modified:
    branches/asterisknow/   (props changed)
    branches/asterisknow/config/scripts/astman.js

Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Jun 18 12:45:04 2007
@@ -1,1 +1,1 @@
-/trunk:1-449,489-540,542-557,559,561-577,580-586,588-1080
+/trunk:1-449,489-540,542-557,559,561-577,580-586,588-1080,1085

Modified: branches/asterisknow/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/scripts/astman.js?view=diff&rev=1086&r1=1085&r2=1086
==============================================================================
--- branches/asterisknow/config/scripts/astman.js (original)
+++ branches/asterisknow/config/scripts/astman.js Mon Jun 18 12:45:04 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