Skip to content

Commit

Permalink
Issue Julienh#51
Browse files Browse the repository at this point in the history
  • Loading branch information
Julienh committed Jun 4, 2012
1 parent 69c763f commit a98d0c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions jquery.sharrre.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,12 @@
}
});
}
else{
this.loadButtons();
else if(self.options.template !== ''){ //for personalized button (with template)
this.options.render(this, this.options);
}
else{ // if you want to use official button like example 3 or 5
this.loadButtons();
}

//add hover event
$(this.element).hover(function(){
Expand Down Expand Up @@ -443,7 +445,7 @@
url = urlJson[name].replace('{url}', this.options.buttons[name].url);
}
//console.log('name : ' + name + ' - url : '+url); //debug
if(url != ''){ //urlCurl = '' if you don't want to used PHP script but used social button
if(url != '' && self.options.urlCurl !== ''){ //urlCurl = '' if you don't want to used PHP script but used social button
$.getJSON(url, function(json){
if(typeof json.count !== "undefined"){ //GooglePlus, Stumbleupon, Twitter and Digg
var temp = json.count + '';
Expand Down
Loading

0 comments on commit a98d0c9

Please sign in to comment.