| 
					
				 | 
			
			
				@@ -125,7 +125,7 @@ Template.settings.events({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 Template.profile.events({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //Edit reak name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //Edit real name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     "click #edit-name": function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#name").hide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#name-div").show(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1245,20 +1245,29 @@ Template.admin.helpers({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 Template.admin.events({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  "click #croom_create": function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      Meteor.call("createRoom", $("#croom_display").val(), $("#croom_tag").val(), function (err, res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (err) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              alert("Error " + err.error + ": " + err.reason); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              window.location = "/" + $("#croom_tag").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  "click a": function(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    var id = e.currentTarget.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    console.log(id.toLowerCase()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    Session.set("playlistToEdit", id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    "click #croom_create": function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Meteor.call("createRoom", $("#croom_display").val(), $("#croom_tag").val(), function (err, res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (err) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            alert("Error " + err.error + ": " + err.reason); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            window.location = "/" + $("#croom_tag").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    "click a": function(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var id = e.currentTarget.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log(id.toLowerCase()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Session.set("playlistToEdit", id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    "click #croom_create": function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Meteor.call("createRoom", $("#croom_display").val(), $("#croom_tag").val(), $("#two").prop("checked"), function (err, res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (err) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                alert("Error " + err.error + ": " + err.reason); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                window.location = "/" + $("#croom_tag").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 Template.stations.helpers({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1471,15 +1480,6 @@ Template.stations.events({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 10000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    "click #croom_create": function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Meteor.call("createRoom", $("#croom_display").val(), $("#croom_tag").val(), $("#two").prop("checked"), function (err, res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (err) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                alert("Error " + err.error + ": " + err.reason); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                window.location = "/" + $("#croom_tag").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     "click #get-spotify-info": function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var search = $("#title").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var artistName = $("#artist").val(); 
			 |