Changeset 29425

Show
Ignore:
Timestamp:
13.11.2014 12:26:35 (4 years ago)
Author:
sjs49
Message:

Use of .attr() deprecated in new version of jQuery, and was causing problems in Firefox. Changed to use .prop().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/von-sparql/js/von-sparql-setup.js

    r29423 r29425  
    101101        var clickedText = tidyPredicate($(this).text()); 
    102102        $('#sel_Predicate option').removeAttr("selected"); 
    103         $('#sel_Predicate option[text="' + clickedText + '"]').attr("selected","selected"); 
    104103        $('#sel_Predicate option').filter(function(){ 
    105104            return $(this).text() == clickedText; 
    106         }).attr('selected', true); 
     105        }).prop('selected', true); 
    107106         
    108107        //Update refine object selector with new value for predicate