Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add channel settings

  • Loading branch information...
commit a4a1126d209a2cef3e4dd8106da51435d3a565be 1 parent ebb1d85
@maccman authored
View
4 app/javascripts/controllers/settings.js
@@ -82,7 +82,9 @@ window.Settings = Spine.Controller.create({
},
create: function(){
- Channel.create({name: this.input.val()});
+ var value = this.input.val();
+ if ( !value ) return false;
+ Channel.create({name: value});
this.input.val("");
return false;
}
View
4 app/stylesheets/application.less
@@ -250,6 +250,10 @@ body {
}
#settings {
+ button {
+ padding: 8px 20px;
+ font-size: 15px;
+ }
}
#settings .channels {
View
2  app/views/app/index.html.erb
@@ -60,7 +60,7 @@
<div class="createChannel">
<form>
<input type="text" placeholder="Channel name">
- <button>New Channel</button>
+ <button class="pill">New Channel</button>
</form>
</div>
View
BIN  public/WebSocketMain.swf
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.