mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
animate I say!
This commit is contained in:
parent
27fc51da48
commit
5928ffc693
@ -79,6 +79,10 @@ html {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.page-container {
|
||||
min-height: 600px;
|
||||
}
|
||||
|
||||
button::-moz-focus-inner, a::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
|
@ -103,6 +103,7 @@
|
||||
<script src="/templates.js"></script>
|
||||
|
||||
<script src="/Mixins/backbone.marionette.templates.js"></script>
|
||||
<script src="/Mixins/backbone.marionette.region.mixin.js"></script>
|
||||
<script src="/Mixins/backbone.ajax.js"></script>
|
||||
<script src="/Mixins/tablesorter.extensions.js"></script>
|
||||
<script src="/Mixins/spoon.js"></script>
|
||||
|
20
UI/Mixins/backbone.marionette.region.mixin.js
Normal file
20
UI/Mixins/backbone.marionette.region.mixin.js
Normal file
@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
|
||||
(function () {
|
||||
|
||||
var _originalRegionClose = Marionette.Region.prototype.close;
|
||||
|
||||
Marionette.Region.prototype.open = function (view) {
|
||||
var self = this;
|
||||
|
||||
this.$el.fadeOut(200, function () {
|
||||
_originalRegionClose.apply(this, arguments);
|
||||
self.$el.html(view.el);
|
||||
self.$el.fadeIn(150);
|
||||
});
|
||||
};
|
||||
|
||||
Marionette.Region.prototype.close = function () {
|
||||
//do nothing. we close the region as part of open so we can chain the animation
|
||||
};
|
||||
}());
|
Loading…
Reference in New Issue
Block a user