Skip to content

Commit

Permalink
Update scripts.js
Browse files Browse the repository at this point in the history
Remove copy past errors
  • Loading branch information
Sweepr committed May 13, 2015
1 parent 05da7ec commit c304a67
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions templates/we1rdo/js/scripts.js
Expand Up @@ -1305,24 +1305,24 @@ function addSpotFilter(xsrf, filterType, filterValue, filterName, addElementClas

function applyTipTip(){
var categories = $(this).data('cats');
+ if(!categories) return;
+ var dl = "<ul>";
+ var list = $.map(categories, function(value, key){
+ if(value) {
+ if(key=='image'){//if image is used, don't add text or :
+ return '<li>' + value + '</li>';
+ }
+ else{
+ return '<li><strong/>' + key + ': ' + value;
+ }
+ } else {
if(!categories) return;
var dl = "<ul>";
var list = $.map(categories, function(value, key){
if(value) {
if(key=='image'){//if image is used, don't add text or :
return '<li>' + value + '</li>';
}
else{
return '<li><strong/>' + key + ': ' + value;
}
} else {
return '';
} // else
});

dl = dl + list + '</ul>';
+ $(this).attr("title", "");
+ $(this).tipTip({defaultPosition: 'bottom', delay: 800, maxWidth: 'auto', content: dl});
$(this).attr("title", "");
$(this).tipTip({defaultPosition: 'bottom', delay: 800, maxWidth: 'auto', content: dl});
}

function findNearest(possibleValues, realValues, includeLeft, includeRight, value) {
Expand Down

0 comments on commit c304a67

Please sign in to comment.