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));
}

View file

@ -168,7 +168,7 @@ FolderModel.prototype.initComputed = function ()
this.localName = ko.computed(function () {
Globals.langChangeTick();
Globals.langChangeTrigger();
var
iType = this.type(),
@ -203,7 +203,7 @@ FolderModel.prototype.initComputed = function ()
this.manageFolderSystemName = ko.computed(function () {
Globals.langChangeTick();
Globals.langChangeTrigger();
var
sSuffix = '',