Update knockoutjs

This commit is contained in:
RainLoop Team 2014-08-19 14:33:59 +04:00
parent 79a5c11556
commit 69e3ebb146
19 changed files with 250 additions and 123 deletions

View file

@ -10,7 +10,7 @@
<div class="input-append">
<input type="text" class="inputLogin span4 checkAutocomplete" placeholder="Login" name="RainLoopAdminLogin" id="RainLoopAdminLogin"
autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: login, hasFocus: loginFocus" />
data-bind="textInput: login, hasFocus: loginFocus" />
<span class="add-on">
<i class="icon-user"></i>
</span>
@ -20,7 +20,7 @@
<div class="input-append">
<input type="password" class="inputPassword span4 checkAutocomplete" placeholder="Password" name="RainLoopAdminPassword" id="RainLoopAdminPassword"
autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: password" />
data-bind="textInput: password" />
<span class="add-on">
<i class="icon-key"></i>
</span>

View file

@ -49,7 +49,7 @@
</label>
<div class="controls">
<input type="password" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: adminPassword, valueUpdate: 'afterkeydown'" />
data-bind="textInput: adminPassword" />
</div>
</div>
<div class="control-group" data-bind="css: {'error': adminPasswordNewError}">
@ -58,7 +58,7 @@
</label>
<div class="controls">
<input type="password" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: adminPasswordNew, valueUpdate: 'afterkeydown'" />
data-bind="textInput: adminPasswordNew" />
</div>
</div>
<div class="control-group" data-bind="css: {'error': adminPasswordNewError}">
@ -67,7 +67,7 @@
</label>
<div class="controls">
<input type="password" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: adminPasswordNew2, valueUpdate: 'afterkeydown'" />
data-bind="textInput: adminPasswordNew2" />
</div>
</div>
<div class="control-group">

View file

@ -24,7 +24,8 @@
</label>
<div class="controls ">
<input type="text" class="span5" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="visible: !activateProcess() && !activationSuccessed(), value: key, valueUpdate: 'afterkeydown', hasFocus: key.focus"></input>
data-bind="visible: !activateProcess() && !activationSuccessed(), textInput: key, hasFocus: key.focus"></input>
<h4 class="help-inline" style="margin-top: 5px;" data-bind="text: key, visible: activateProcess() || activationSuccessed()"></h4>
<div class="help-block" data-bind="text: activateText"></div>
</div>

View file

@ -11,7 +11,7 @@
Name <span style="color: #aaa">(wildcard supported)</span>
<br />
<input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: name, hasfocus: name.focused, valueUpdate: 'afterkeydown'" />
data-bind="textInput: name, hasfocus: name.focused" />
<span class="error-desc" data-bind="text: savingError"></span>
</div>
</div>
@ -28,13 +28,13 @@
Server
<br />
<input type="text" class="span3" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: imapServer, valueUpdate: 'afterkeydown', hasfocus: imapServerFocus" />
data-bind="textInput: imapServer, hasfocus: imapServerFocus" />
</div>
<div class="span1">
Port
<br />
<input type="text" class="span1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: imapPort, valueUpdate: 'afterkeydown'" />
data-bind="textInput: imapPort" />
</div>
</div>
<br />
@ -67,13 +67,13 @@
Server
<br />
<input type="text" class="span3" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: smtpServer, valueUpdate: 'afterkeydown', hasfocus: smtpServerFocus" />
data-bind="textInput: smtpServer, hasfocus: smtpServerFocus" />
</div>
<div class="span1">
Port
<br />
<input type="text" class="span1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: smtpPort, valueUpdate: 'afterkeydown'" />
data-bind="textInput: smtpPort" />
</div>
</div>
<br />