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

@ -22,7 +22,7 @@
<div class="input-append">
<input type="email" class="i18n inputEmail span4 checkAutocomplete" name="RainLoopEmail" id="RainLoopEmail"
autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: email, hasFocus: emailFocus" data-i18n-placeholder="LOGIN/LABEL_EMAIL" />
data-bind="textInput: email, hasFocus: emailFocus" data-i18n-placeholder="LOGIN/LABEL_EMAIL" />
<span class="add-on">
<i class="icon-mail"></i>
</span>
@ -32,7 +32,7 @@
<div class="input-append">
<input type="password" class="i18n inputPassword span4 checkAutocomplete" name="RainLoopPassword" id="RainLoopPassword"
autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: password" data-i18n-placeholder="LOGIN/LABEL_PASSWORD" />
data-bind="textInput: password" data-i18n-placeholder="LOGIN/LABEL_PASSWORD" />
<span class="add-on">
<i class="icon-key"></i>
</span>
@ -41,7 +41,7 @@
<div class="control-group" data-bind="visible: additionalCode.visibility(), css: {'error': additionalCode.error}">
<div class="input-append">
<input type="text" class="i18n inputAdditionalCode span4" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: additionalCode, hasFocus: additionalCode.focused" data-i18n-placeholder="LOGIN/LABEL_VERIFICATION_CODE" />
data-bind="textInput: additionalCode, hasFocus: additionalCode.focused" data-i18n-placeholder="LOGIN/LABEL_VERIFICATION_CODE" />
<span class="add-on">
<i class="icon-key"></i>
</span>

View file

@ -18,7 +18,7 @@
<label class="i18n control-label" data-i18n-text="LOGIN/LABEL_EMAIL"></label>
<div class="controls">
<input type="email" class="inputEmail input-large" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: email, valueUpdate: 'afterkeydown', onEnter: addAccountCommand, hasfocus: emailFocus" />
data-bind="textInput: email, onEnter: addAccountCommand, hasfocus: emailFocus" />
</div>
</div>
<div class="control-group" data-bind="css: {'error': passwordError}">

View file

@ -92,7 +92,7 @@
<span class="i18n" data-i18n-text="COMPOSE/TITLE_SUBJECT"></span>
</div>
<div class="e-cell e-value">
<input type="text" size="70" autocomplete="off" data-bind="value: subject, valueUpdate: 'afterkeydown'" />
<input type="text" size="70" autocomplete="off" data-bind="textInput: subject" />
</div>
</div>
<div class="e-row">

View file

@ -16,7 +16,7 @@
</label>
<div class="controls">
<input type="text" class="uiInput inputName" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: folderName, hasfocus: folderName.focused, valueUpdate: 'afterkeydown', onEnter: createFolder" />
data-bind="textInput: folderName, hasfocus: folderName.focused, onEnter: createFolder" />
</div>
</div>
<div class="control-group">

View file

@ -17,7 +17,7 @@
<div class="controls">
<input type="text" class="uiInput inputName"
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: code, hasfocus: code.focused, valueUpdate: 'afterkeydown', onEnter: testCode" />
data-bind="textInput: code, hasfocus: code.focused, onEnter: testCode" />
</div>
</div>
</div>

View file

@ -11,7 +11,7 @@
</label>
<div class="controls">
<input type="password" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: currentPassword, valueUpdate: 'afterkeydown'" />
data-bind="textInput: currentPassword" />
</div>
</div>
<div class="control-group" data-bind="css: {'error': passwordMismatch}">
@ -20,7 +20,7 @@
</label>
<div class="controls">
<input type="password" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: newPassword, valueUpdate: 'afterkeydown'" />
data-bind="textInput: newPassword" />
</div>
</div>
<div class="control-group" data-bind="css: {'error': passwordMismatch}">
@ -29,7 +29,7 @@
</label>
<div class="controls">
<input type="password" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-bind="value: newPassword2, valueUpdate: 'afterkeydown'" />
data-bind="textInput: newPassword2" />
</div>
</div>
<div class="control-group">