mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Adding fade transitions between settings tabs.
Closes #371 - Added a hide and fadeIn() to the render method in Settings.Pane - Any Settings.Pane which overwrites render should now make sure the parent is called - Run through grunt validate, all OK.
This commit is contained in:
parent
0346b5034e
commit
98e2072d64
@ -86,7 +86,11 @@
|
|||||||
this.$el.removeClass('active');
|
this.$el.removeClass('active');
|
||||||
this.undelegateEvents();
|
this.undelegateEvents();
|
||||||
},
|
},
|
||||||
|
render: function () {
|
||||||
|
this.$el.hide();
|
||||||
|
Ghost.View.prototype.render.call(this);
|
||||||
|
this.$el.fadeIn(300);
|
||||||
|
},
|
||||||
afterRender: function () {
|
afterRender: function () {
|
||||||
this.$el.attr('id', this.id);
|
this.$el.attr('id', this.id);
|
||||||
this.$el.addClass('active');
|
this.$el.addClass('active');
|
||||||
|
Loading…
Reference in New Issue
Block a user