Update connect

This commit is contained in:
Mattias Erming 2014-09-14 14:26:22 -07:00
parent b52b860167
commit f783c9ccb0
2 changed files with 9 additions and 14 deletions

View File

@ -79,6 +79,12 @@
<div class="col-sm-12"> <div class="col-sm-12">
<h2>Network settings</h2> <h2>Network settings</h2>
</div> </div>
<div class="col-sm-3">
<label>Name</label>
</div>
<div class="col-sm-9">
<input class="input" name="name" value="Freenode">
</div>
<div class="col-sm-3"> <div class="col-sm-3">
<label>Server</label> <label>Server</label>
</div> </div>
@ -111,9 +117,10 @@
<div class="col-sm-3"> <div class="col-sm-3">
<label>Nick</label> <label>Nick</label>
</div> </div>
<div class="col-sm-9"> <div class="col-sm-5">
<input class="input" name="nick" value="shout-user"> <input class="input" name="nick" value="shout-user">
</div> </div>
<div class="clearfix"></div>
<div class="col-sm-3"> <div class="col-sm-3">
<label>Real Name</label> <label>Real Name</label>
</div> </div>

View File

@ -197,12 +197,7 @@ $(function() {
$("#connect") $("#connect")
.find(".btn") .find(".btn")
.prop("disabled", false) .prop("disabled", false)
.end() .end();
.find("input")
.each(function() {
var self = $(this);
self.val(self.data("default"));
});
}); });
socket.on("nick", function(data) { socket.on("nick", function(data) {
@ -238,13 +233,6 @@ $(function() {
.html(render("user", data)); .html(render("user", data));
}); });
$("#connect")
.find("input")
.each(function() {
var self = $(this);
self.data("default", self.val());
});
$.cookie.json = true; $.cookie.json = true;
var settings = $("#settings"); var settings = $("#settings");