Skip to content

Commit a4a1126

Browse files
committed
add channel settings
1 parent ebb1d85 commit a4a1126

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

app/javascripts/controllers/settings.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ window.Settings = Spine.Controller.create({
8282
},
8383

8484
create: function(){
85-
Channel.create({name: this.input.val()});
85+
var value = this.input.val();
86+
if ( !value ) return false;
87+
Channel.create({name: value});
8688
this.input.val("");
8789
return false;
8890
}

app/stylesheets/application.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ body {
250250
}
251251

252252
#settings {
253+
button {
254+
padding: 8px 20px;
255+
font-size: 15px;
256+
}
253257
}
254258

255259
#settings .channels {

app/views/app/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<div class="createChannel">
6161
<form>
6262
<input type="text" placeholder="Channel name">
63-
<button>New Channel</button>
63+
<button class="pill">New Channel</button>
6464
</form>
6565
</div>
6666

public/WebSocketMain.swf

176 KB
Binary file not shown.

0 commit comments

Comments
 (0)