Skip to content

Commit

Permalink
Removed some notification test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Aug 28, 2011
1 parent 461fc2e commit 3de3ce2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
9 changes: 1 addition & 8 deletions public/_/js/backbone.views.js
Expand Up @@ -6,8 +6,6 @@

// Probably doesn't belong here?
,isContributor = $docEl.data('iscontributor');

extend('DEBUG.notificationTest', true);

// ACE EDITOR VIEWS //////////////////////////////
function get (aceInst) {
Expand Down Expand Up @@ -212,12 +210,7 @@
}

,'initialize': function initialize (option) {
if (DEBUG.notificationTest === true) {
var tempInternals = $('#notification').html();
$('#notification').remove();

this.createNotification(tempInternals);
}

}

,'createNotification': function createNotification (contents) {
Expand Down
10 changes: 10 additions & 0 deletions public/_/js/coderoom.js
@@ -1,6 +1,8 @@
$(function () {
var editor;

extend('DEBUG.notificationTest', false);

editor = $('#editor');

if (editor.length > 0) {
Expand All @@ -10,4 +12,12 @@ $(function () {
}

extend('codingstage.instance.notification.stage', new codingstage.views.notification());

if (DEBUG.notificationTest === true) {
var tempInternals = $('#notification').html();
$('#notification').remove();

codingstage.instance.notification.stage.createNotification(tempInternals);
}

});
4 changes: 2 additions & 2 deletions views/notification.ejs
@@ -1,4 +1,4 @@
<div id="notification">
<!--<div id="notification">
<section id="approve-collaborators">
Promote to collaborator?
<article>
Expand All @@ -11,4 +11,4 @@
[Username] <a href="#" class="approve">Approve</a> <a href="#" class="dismiss">Dismiss</a>
</article>
</section>
</div>
</div>-->

0 comments on commit 3de3ce2

Please sign in to comment.