pari: branch 2.0 r3717 - in /branches/2.0/config/js: astman.js providers.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Aug 28 16:33:00 CDT 2008
Author: pari
Date: Thu Aug 28 16:32:59 2008
New Revision: 3717
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3717
Log:
BYOSPS - Bring your own service providers scripts
# Allow custom service providers scripts
# empty by default
# A default template will be added (later) to demonstrate how this file is supposed to work.
Added:
branches/2.0/config/js/providers.js
Modified:
branches/2.0/config/js/astman.js
Modified: branches/2.0/config/js/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/astman.js?view=diff&rev=3717&r1=3716&r2=3717
==============================================================================
--- branches/2.0/config/js/astman.js (original)
+++ branches/2.0/config/js/astman.js Thu Aug 28 16:32:59 2008
@@ -293,7 +293,7 @@
includeContexts: [], // updated below
globals: {
- providerUrl: 'https://gui-dl.digium.com/providers.js', // ASTGUI.globals.providerUrl
+ providerUrl: './js/providers.js', // ASTGUI.globals.providerUrl
appname : 'Asterisk GUI',
lang : 'en',
GUI_DB : 'astgui', // name of the ASTDB database used by GUI -- ASTGUI.globals.GUI_DB
Added: branches/2.0/config/js/providers.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/providers.js?view=auto&rev=3717
==============================================================================
--- branches/2.0/config/js/providers.js (added)
+++ branches/2.0/config/js/providers.js Thu Aug 28 16:32:59 2008
@@ -1,0 +1,16 @@
+/*
+* Javascript functions for Managing Service Providers in AsteriskGUI
+*
+* Replace this page with your custom service providers script
+*
+*/
+
+var whenThisFileisLoaded = function(){
+ parent.ASTGUI.dialog.hide();
+ DOM_table_SPS_list = _$('table_SPS_list');
+ ASTGUI.domActions.clear_table(DOM_table_SPS_list);
+ var newRow = DOM_table_SPS_list.insertRow(-1);
+ ASTGUI.domActions.tr_addCell( newRow , { html: "No Providers listed in Providers.js" } );
+}
+
+loaded_external = true; // this should be the last line in the code, tells the page (that loaded this script) that the script has been loaded
More information about the asterisk-gui-commits
mailing list