Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
fixed some javascript crap
Browse files Browse the repository at this point in the history
  • Loading branch information
ojii committed Jun 17, 2010
1 parent 1b27857 commit 7036503
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jplayer/__init__.py
@@ -1 +1 @@
__version__ = '0.1.6'
__version__ = '0.1.7'
7 changes: 4 additions & 3 deletions jplayer/media/jplayer/js/cmsplayer.js
Expand Up @@ -110,12 +110,13 @@ function cmsplayer_ready (element, options)

(function($) {
$.fn.cmsPlayer = function(options) {
var das = $(this);
if (!options){
var options = {};
}
$.extend(options, {
ready: cmsplayer_ready(this, options)
})
ready: function(){cmsplayer_ready(das, options)}
});
var fulloptions = {
autoplay: true,
autonext: true
Expand All @@ -126,7 +127,7 @@ function cmsplayer_ready (element, options)
dbg("[CMSPLAYER] ERROR: playerid and playlist *must* be defined!");
return this;
}
this.jPlayer(fulloptions);
$(das).jPlayer(fulloptions);
return this;
};
})(jQuery);
Expand Down

0 comments on commit 7036503

Please sign in to comment.