Inputosaurus small fixes

This commit is contained in:
RainLoop Team 2013-11-29 19:53:46 +04:00
parent c28f82a3b9
commit 93c7e05994
10 changed files with 72 additions and 41 deletions

View file

@ -14,20 +14,28 @@
background-color: #eee;
border: 1px solid #aaa;
line-height: 18px;
padding: 2px 4px;
padding: 2px 15px 2px 5px;
margin: 2px 2px 2px;
color: #555;
position: relative;
a {
color: #999;
float: right;
font-size: 14px;
font-size: 12px;
position: absolute;
top: 1px;
right: 2px;
&:hover {
color: #666;
}
}
&.inputosaurus-required {
padding-rigth: 5px;
}
&.inputosaurus-selected {
background-color: #ddd;
}
@ -41,7 +49,7 @@
.inputosaurus-input {
margin: 2px 10px 2px 0px;
margin: 1px 10px 1px 0px;
height: 22px;
input {

View file

@ -153,8 +153,8 @@ function PopupsComposeViewModel()
}, this);
this.to.subscribe(function (aValue) {
if (this.emptyToError() && 0 < aValue.length)
this.to.subscribe(function (sValue) {
if (this.emptyToError() && 0 < sValue.length)
{
this.emptyToError(false);
}
@ -217,7 +217,7 @@ function PopupsComposeViewModel()
this.sendCommand = Utils.createCommand(this, function () {
var
sTo = this.to(),
sTo = Utils.trim(this.to()),
sSentFolder = RL.data().sentFolder(),
aFlagsCache = []
;
@ -557,6 +557,7 @@ PopupsComposeViewModel.prototype.saveMessageResponse = function (sResult, oData)
PopupsComposeViewModel.prototype.onHide = function ()
{
this.reset();
kn.routeOn();
};