Minor contacts interface improvements.

Move intervals to pub/sub system
This commit is contained in:
RainLoop Team 2013-12-15 15:02:50 +04:00
parent b4e52e768c
commit 975947a948
31 changed files with 691 additions and 524 deletions

View file

@ -3,12 +3,13 @@
/**
* @param {number=} iType = Enums.ContactPropertyType.Unknown
* @param {string=} sValue = ''
* @param {boolean=} bFocused = false
*
* @constructor
*/
function ContactPropertyModel(iType, sValue)
function ContactPropertyModel(iType, sValue, bFocused)
{
this.type = ko.observable(Utils.isUnd(iType) ? Enums.ContactPropertyType.Unknown : iType);
this.focused = ko.observable(false);
this.focused = ko.observable(Utils.isUnd(bFocused) ? false : !!bFocused);
this.value = ko.observable(Utils.pString(sValue));
}