rbrindley: branch rbrindley/astman_revamp r4676 - /team/rbrindley/astman_reva...

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Mar 30 12:21:39 CDT 2009


Author: rbrindley
Date: Mon Mar 30 12:21:36 2009
New Revision: 4676

URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4676
Log:

- if {...} else {...} return rather than if {...return} ...return


Modified:
    team/rbrindley/astman_revamp/config/js/incoming.js

Modified: team/rbrindley/astman_revamp/config/js/incoming.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/incoming.js?view=diff&rev=4676&r1=4675&r2=4676
==============================================================================
--- team/rbrindley/astman_revamp/config/js/incoming.js (original)
+++ team/rbrindley/astman_revamp/config/js/incoming.js Mon Mar 30 12:21:36 2009
@@ -108,15 +108,13 @@
 				msg: 'Error removing Calling Rule.',
 				showfor: 2
 			});
-
-			return;
-		}
-
-		ASTGUI.feedback({ 
-			color: 'green',
-			msg: 'Deleted Incoming Rule.',
-			showfor: 2
-		});
+		} else {
+			ASTGUI.feedback({ 
+				color: 'green',
+				msg: 'Deleted Incoming Rule.',
+				showfor: 2
+			});
+		}
 
 		return;
 	},




More information about the asterisk-gui-commits mailing list