Add the ability to enable/disable UI animations. Fixes #1978

This commit is contained in:
Khushboo Vashi
2018-04-03 14:52:13 +01:00
committed by Dave Page
parent 94e1e46201
commit 7805170783
11 changed files with 234 additions and 8 deletions

View File

@@ -1,9 +1,10 @@
define('pgadmin.preferences', [
'sources/gettext', 'sources/url_for', 'jquery', 'underscore', 'backbone',
'pgadmin.alertifyjs', 'sources/pgadmin', 'pgadmin.backform',
'pgadmin.browser',
'pgadmin.browser', 'sources/modify_animation',
], function(
gettext, url_for, $, _, Backbone, Alertify, pgAdmin, Backform, pgBrowser
gettext, url_for, $, _, Backbone, Alertify, pgAdmin, Backform, pgBrowser,
modifyAnimation
) {
// This defines the Preference/Options Dialog for pgAdmin IV.
@@ -379,8 +380,15 @@ define('pgadmin.preferences', [
ajax: {
url: url_for('preferences.index'),
},
animateRoot: true,
unanimated: false,
show: {duration: 75},
hide: {duration: 75},
view: {duration: 75},
});
modifyAnimation.modify_acitree_animation(pgBrowser, jTree.aciTree('api'));
this.show();
},
setup: function() {