mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
fix up the animations. seems to be related to the data-bound attribute causing the animtions not to fire on each .mix object.
This commit is contained in:
parent
07b02d90e6
commit
bee4d2dc4c
1 changed files with 7 additions and 1 deletions
|
@ -17,6 +17,11 @@ var mixItUpDefault = {
|
|||
},
|
||||
layout: {
|
||||
display: 'block'
|
||||
},
|
||||
callbacks: {
|
||||
onMixStart: function (state, futureState) {
|
||||
$('.mix', this).removeAttr('data-bound').removeData('bound'); // fix for animation issues in other tabs
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -29,7 +34,7 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
|||
|
||||
var $ml = $('#movieList');
|
||||
var $tvl = $('#tvList');
|
||||
|
||||
|
||||
$('.approve-category').hide();
|
||||
if (target === "#TvShowTab") {
|
||||
$('#approveTVShows').show();
|
||||
|
@ -49,6 +54,7 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
|||
if ($ml.mixItUp('isLoaded')) $ml.mixItUp('destroy');
|
||||
$ml.mixItUp(mixItUpConfig(activeState)); // init or reinit
|
||||
}
|
||||
//$('.mix[data-bound]').removeAttr('data-bound');
|
||||
});
|
||||
|
||||
// Approve all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue