[DE mobile] Remove animation when review open

This commit is contained in:
Julia Svinareva 2019-05-22 11:44:45 +03:00
parent 88ee14544c
commit 840bd61c4b
2 changed files with 5 additions and 7 deletions

View file

@ -151,7 +151,7 @@ define([
} else if ('review' == eventName) { } else if ('review' == eventName) {
var getCollaboration = DE.getController('Collaboration'); var getCollaboration = DE.getController('Collaboration');
getCollaboration.showModal(); getCollaboration.showModal();
getCollaboration.getView('Collaboration').showPage('#reviewing-settings-view'); getCollaboration.getView('Collaboration').showPage('#reviewing-settings-view', false);
} else if ('showActionSheet' == eventName && _actionSheets.length > 0) { } else if ('showActionSheet' == eventName && _actionSheets.length > 0) {
_.delay(function () { _.delay(function () {
_.each(_actionSheets, function (action) { _.each(_actionSheets, function (action) {

View file

@ -118,7 +118,7 @@ define([
return ''; return '';
}, },
showPage: function(templateId, suspendEvent) { showPage: function(templateId, animate) {
var rootView = DE.getController('Collaboration').rootView(); var rootView = DE.getController('Collaboration').rootView();
if (rootView && this.layout) { if (rootView && this.layout) {
@ -130,18 +130,16 @@ define([
} }
rootView.router.load({ rootView.router.load({
content: $content.html() content: $content.html(),
animatePages: animate !== false
}); });
if (suspendEvent !== true) { this.fireEvent('page:show', [this, templateId]);
this.fireEvent('page:show', [this, templateId]);
}
} }
}, },
textCollaboration: 'Collaboration', textCollaboration: 'Collaboration',
textReviewing: 'Review', textReviewing: 'Review',
textСomments: 'Сomments', textСomments: 'Сomments',