--- a/src/pyams_media/skin/resources/js/pyams_media.min.js Fri Nov 09 12:11:44 2018 +0100
+++ b/src/pyams_media/skin/resources/js/pyams_media.min.js Fri Nov 16 15:17:08 2018 +0100
@@ -1,1 +1,1 @@
-!function(a,e){"use strict";var l=e.MyAMS,r={initPlayer:function(e){l.ajax.check(a.fn.flowplayer,"/--static--/pyams_media/flowplayer/flowplayer"+l.devext+".js",function(i){i&&(l.dialog.registerShownCallback(r.initPlayerDialog,t),l.dialog.registerHideCallback(r.shutdownPlayerDialog,t));var t=a(e),o=t.flowplayer(),n=t.data("ams-flowplayer-events");if(n)for(var y in n)n.hasOwnProperty(y)&&o.on(y,l.getFunctionByName(n[y]))})},initPlayerDialog:function(){var e=a(this);a(".modal-viewport",e).removeAttr("style").removeClass("modal-viewport")},shutdownPlayerDialog:function(){var e=a(this);a(".flowplayer",e).data("flowplayer").shutdown()},getPlayerTime:function(){var e=a(this);e.hasClass("flowplayer")||(e=a(".flowplayer",e));var l=e.data("flowplayer"),r=l.video;if(!r.time&&l.conf.flowplayer&&(r=l.conf.flowplayer.video),r&&r.time){var i=r.time,t=e.parents("form");a('INPUT[name="thumbnail_form.widgets.time"]',t).val(i)}},pausePlayer:function(){var e=a(this),l=a(".flowplayer",e).data("flowplayer");return l.playing&&l.pause(),r.getPlayerTime.call(e),{}}};e.PyAMS_media=r}(jQuery,this);
+!function(o,a){"use strict";var n=a.MyAMS,y={initPlayer:function(t){n.ajax.check(o.fn.flowplayer,"/--static--/pyams_media/flowplayer/flowplayer"+n.devext+".js",function(a){a&&(n.dialog.registerShownCallback(y.initPlayerDialog,e),n.dialog.registerHideCallback(y.shutdownPlayerDialog,e));var e=o(t),l=e.flowplayer(),r=e.data("ams-flowplayer-events");if(r)for(var i in r)r.hasOwnProperty(i)&&l.on(i,n.getFunctionByName(r[i]))})},initPlayerDialog:function(){var a=o(this);o(".modal-viewport",a).removeAttr("style").removeClass("modal-viewport")},shutdownPlayerDialog:function(){var a=o(this);o(".flowplayer",a).data("flowplayer").shutdown()},getPlayerTime:function(){var a=o(this);a.hasClass("flowplayer")||(a=o(".flowplayer",a));var e=a.data("flowplayer"),l=e.video;if(!l.time&&e.conf.flowplayer&&(l=e.conf.flowplayer.video),l&&l.time){var r=l.time,i=a.parents("form");o('INPUT[name="thumbnail_form.widgets.time"]',i).val(r)}},pausePlayer:function(){var a=o(this),e=o(".flowplayer",a).data("flowplayer");return e.playing&&e.pause(),y.getPlayerTime.call(a),{}}};a.PyAMS_media=y}(jQuery,this);