Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed some notification test code.

  • Loading branch information...
commit 3de3ce27be497e83924ed4ff543efb84af0d5c69 1 parent 461fc2e
@jeremyckahn jeremyckahn authored
View
9 public/_/js/backbone.views.js
@@ -6,8 +6,6 @@
// Probably doesn't belong here?
,isContributor = $docEl.data('iscontributor');
-
- extend('DEBUG.notificationTest', true);
// ACE EDITOR VIEWS //////////////////////////////
function get (aceInst) {
@@ -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) {
View
10 public/_/js/coderoom.js
@@ -1,6 +1,8 @@
$(function () {
var editor;
+ extend('DEBUG.notificationTest', false);
+
editor = $('#editor');
if (editor.length > 0) {
@@ -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);
+ }
+
});
View
4 views/notification.ejs
@@ -1,4 +1,4 @@
-<div id="notification">
+<!--<div id="notification">
<section id="approve-collaborators">
Promote to collaborator?
<article>
@@ -11,4 +11,4 @@
[Username] <a href="#" class="approve">Approve</a> <a href="#" class="dismiss">Dismiss</a>
</article>
</section>
-</div>
+</div>-->
Please sign in to comment.
Something went wrong with that request. Please try again.