Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Framework update.
Browse files Browse the repository at this point in the history
  • Loading branch information
VxMxPx committed May 21, 2012
1 parent b8b6116 commit 1ccd1ab
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
10 changes: 10 additions & 0 deletions bugless/system/plugs/debug/libraries/debug.css
Expand Up @@ -35,6 +35,16 @@
z-index: 92;
}

.cdebugToggleTag {
border-radius: 6px 6px 6px 6px;
font-size: 10px;
font-weight: normal;
padding: 1px 4px;
}

.cdebugToggleTag.cdtttError { background-color: #F66; }
.cdebugToggleTag.cdtttWarning { background-color: #FB4; }

#cdebugPanel {
position: fixed;
width: 800px;
Expand Down
12 changes: 11 additions & 1 deletion bugless/system/plugs/debug/libraries/debug.js
Expand Up @@ -93,13 +93,23 @@
* Init the cDebug
*/
init : function() {

this.overlay = $(this.templates.overlay).appendTo('body');
this.toggle = $(this.templates.toggle).appendTo('body');
this.toggleHeight = this.toggle.outerHeight();
this.contents = this.panel.find('div.content');
this.navigation = this.panel.find('div.navigation');

var countWAR = $('#cdebugPanel .content.log .msgType_WAR').length;
var countERR = $('#cdebugPanel .content.log .msgType_ERR').length;

if (countERR > 0) {
this.toggle.append(' <span class="cdebugToggleTag cdtttError">' + countERR + '</span>');
}

if (countWAR > 0) {
this.toggle.append(' <span class="cdebugToggleTag cdtttWarning">' + countWAR + '</span>');
}

this.toggle.on('click', this.panelToggle);
this.overlay.on('click', this.panelHide);
this.navigation.find('a').on('click', function(e) {
Expand Down

0 comments on commit 1ccd1ab

Please sign in to comment.