1
0
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:
Keivan Beigi 2013-05-14 19:07:14 -07:00
parent 27fc51da48
commit 5928ffc693
3 changed files with 25 additions and 0 deletions

View File

@ -79,6 +79,10 @@ html {
margin-bottom: 30px;
}
.page-container {
min-height: 600px;
}
button::-moz-focus-inner, a::-moz-focus-inner {
border: 0;
}

View File

@ -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>

View 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
};
}());