From 08e9398ab348cb1bd0901abf8404696845448988 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 14 Jun 2012 15:13:38 +0530 Subject: [PATCH] dont have loading video twice --- itf/static/js/jquery.pandoravideo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itf/static/js/jquery.pandoravideo.js b/itf/static/js/jquery.pandoravideo.js index 87f79fe..0bceb81 100644 --- a/itf/static/js/jquery.pandoravideo.js +++ b/itf/static/js/jquery.pandoravideo.js @@ -47,12 +47,12 @@ 'callback': function() { $.noop(); } //function to call after done instantiating pandoraVideo object, called with the object. }, dataOptions), id = opts.id, - $loading = $('
').addClass("pandoraLoading").text("Loading video...").appendTo($this), + //$loading = $('
').addClass("pandoraLoading").text("Loading video...").appendTo($this), sendData = JSON.stringify({'id': id, 'keys': opts.keys}); //get the pandora id and instantiate a pandoraVideo object with the current element and render it and execute optional callback var deferred = $.post(opts.api, {'action': opts.action, 'data': sendData}, function(response) { - $loading.hide().remove(); + //$loading.hide().remove(); var pandora = new PandoraVideo(id, response.data, $this, opts); pandora.render(); opts.callback(pandora);