Release commit

This commit is contained in:
RainLoop Team 2015-02-15 04:30:21 +04:00
parent 86f855fa5b
commit b01f298b7b
13 changed files with 121 additions and 42 deletions

View file

@ -203,6 +203,10 @@
return 0 < Globals.popupVisibilityNames().length;
}, this);
Globals.popupVisibility.subscribe(function (bValue) {
Globals.$html.toggleClass('rl-modal', bValue);
});
// keys
Globals.keyScopeReal = ko.observable(Enums.KeyState.All);
Globals.keyScopeFake = ko.observable(Enums.KeyState.All);

14
dev/External/ko.js vendored
View file

@ -287,7 +287,19 @@
});
},
'update': function (oElement, fValueAccessor) {
$(oElement).modal(ko.unwrap(fValueAccessor()) ? 'show' : 'hide');
var Globals = require('Common/Globals');
$(oElement).modal(!!ko.unwrap(fValueAccessor()) ? 'show' : 'hide');
if (Globals.$html.hasClass('rl-anim'))
{
Globals.$html.addClass('rl-modal-animation');
_.delay(function () {
Globals.$html.removeClass('rl-modal-animation');
}, 400);
}
}
};

View file

@ -101,10 +101,14 @@ html.rl-started-trigger.no-mobile .b-login-content .loginFormWrapper {
}
}
&.csstransitions.rl-modal.rl-modal-animation .popups {
overflow: hidden;
}
&.csstransitions .modal.fade {
.transition(all 200ms ease-out);
transform: scale(1.1);
transform: scale(0.95);
&.in {
transform: none;

View file

@ -1308,6 +1308,7 @@
});
Events.sub('window.resize.real', this.resizerTrigger);
Events.sub('window.resize.real', _.debounce(this.resizerTrigger, 50));
if (this.dropboxEnabled())
{
@ -1328,6 +1329,13 @@
}
});
}
window.setInterval(function () {
if (self.modalVisibility() && self.oEditor)
{
self.oEditor.resize();
}
}, 5000);
};
ComposePopupView.prototype.driveCallback = function (sAccessToken, oData)