rbrindley: branch rbrindley/astman_revamp r4555 - in /team/rbrindley/astman_r...
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Tue Mar 3 08:24:15 CST 2009
Author: rbrindley
Date: Tue Mar 3 08:24:12 2009
New Revision: 4555
URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4555
Log:
- renamed session.debug_mode to session.log, as it is a boolean specifying if logging is enabled
- renamed session.debug_which to session.log_modes, as it is an object containing booleans for enabling each log mode
- added session.debug_log
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=4555&r1=4554&r2=4555
==============================================================================
--- team/rbrindley/astman_revamp/config/index.html (original)
+++ team/rbrindley/astman_revamp/config/index.html Tue Mar 3 08:24:12 2009
@@ -327,8 +327,9 @@
<script>
var session = {
- debug_mode: true,
- debug_which: {
+ debug_log: '',
+ log: true,
+ log_modes: {
ajax: true,
console: true,
debug: 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=4555&r1=4554&r2=4555
==============================================================================
--- team/rbrindley/astman_revamp/config/js/log.js (original)
+++ team/rbrindley/astman_revamp/config/js/log.js Tue Mar 3 08:24:12 2009
@@ -40,7 +40,7 @@
* @param msg The message.
*/
log.ajax = function (msg) {
- if (!msg || top.session.debug_which.ajax !== true) {
+ if (!msg || top.session.log_modes.ajax !== true) {
return true;
}
this.doLog(msg, this.colors.ajax);
@@ -51,7 +51,7 @@
* @param msg The message.
*/
log.console = function (msg) {
- if (!msg || top.session.debug_which.console !== true || window.console || window.console.firebug) {
+ if (!msg || top.session.log_modes.console !== true || window.console || window.console.firebug) {
return true;
}
console.log(msg);
@@ -62,7 +62,7 @@
* @param msg The message.
*/
log.debug = function (msg) {
- if (!msg || top.session.debug_which.debug !== true) {
+ if (!msg || top.session.log_modes.debug !== true) {
return true;
}
this.doLog(msg, this.colors.debug);
@@ -74,7 +74,7 @@
* @param color The HTML hexademical color code.
*/
log.doLog = function () {
- if (!top.session.debug_mode) {
+ if (!top.session.log) {
return true;
}
@@ -97,7 +97,7 @@
* @param msg The message.
*/
log.error = function (msg) {
- if (!msg || top.session.debug_which.error !== true) {
+ if (!msg || top.session.log_modes.error !== true) {
return true;
}
this.doLog(msg, this.colors.error);
@@ -108,7 +108,7 @@
* @param msg The message.
*/
log.info = function (msg) {
- if (!msg || top.session.debug_which.info !== true) {
+ if (!msg || top.session.log_modes.info !== true) {
return true;
}
this.doLog(msg, this.colors.info);
@@ -119,7 +119,7 @@
* @param msg The message.
*/
log.warn = function (msg) {
- if (!msg || top.session.debug_which.warn !== true) {
+ if (!msg || top.session.log_modes.warn !== true) {
return true;
}
this.doLog(msg, this.colors.warn);
More information about the asterisk-gui-commits
mailing list