rbrindley: branch rbrindley/astman_revamp r4556 - in /team/rbrindley/astman_r...
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Tue Mar 3 08:46:06 CST 2009
Author: rbrindley
Date: Tue Mar 3 08:46:03 2009
New Revision: 4556
URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4556
Log:
- changed debug_log to an array
- implemented log.clear, was miscFunctions.DEBUG_CLEAR in js/index.js
- added log.html to hold the jQuery object/selector for the html DOM holding log messages, was previously hardcoded as 'debug_messages'
Modified:
team/rbrindley/astman_revamp/config/index.html
team/rbrindley/astman_revamp/config/js/log.js
Modified: team/rbrindley/astman_revamp/config/index.html
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/index.html?view=diff&rev=4556&r1=4555&r2=4556
==============================================================================
--- team/rbrindley/astman_revamp/config/index.html (original)
+++ team/rbrindley/astman_revamp/config/index.html Tue Mar 3 08:46:03 2009
@@ -327,7 +327,7 @@
<script>
var session = {
- debug_log: '',
+ debug_log: [],
log: true,
log_modes: {
ajax: true,
Modified: team/rbrindley/astman_revamp/config/js/log.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/log.js?view=diff&rev=4556&r1=4555&r2=4556
==============================================================================
--- team/rbrindley/astman_revamp/config/js/log.js (original)
+++ team/rbrindley/astman_revamp/config/js/log.js Tue Mar 3 08:46:03 2009
@@ -32,7 +32,8 @@
error: '#992b23',
info: '#9a9a9a',
warn: '#f47a00'
- }
+ },
+ html: '' /**< jQuery selector, or jQuery object for holding all the log messages. */
};
/**
@@ -55,6 +56,14 @@
return true;
}
console.log(msg);
+};
+
+/**
+ *
+ */
+log.clear = function() {
+ top.session.debug_log = [];
+ $(this.html).html('No log messages');
};
/**
More information about the asterisk-gui-commits
mailing list