Sha256: 3b55a60ada54f7601e190f614ffc662a3b6e338482edda2bf14e28ec516f45b7
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
function change_rule(element, name){ var selected = jQuery(element).val().replace(/\s+/g,"") //alert(selected) var condition = jQuery(element).parent().parent() condition.html('') condition.append(jQuery('.rule-'+selected+'.pattern').html()) //condition.append(jQuery('.rule-'+selected+'.pattern').clone().removeClass('pattern')) //$(element).parent().replaceWith(jQuery('.rule-'+jQuery(element).val().replace(/\s+/g,"")+'.pattern').clone().removeClass('pattern').removeClass('rule-'+jQuery(element).val().replace(/\s+/g,"")).addClass('rule-condition')) //check_remove_icon_status(name); check_icons('rule-conditions'); check_icons('end-conditions'); } function rezindex(){ var nb=990 jQuery('.dropdown').each(function(){ jQuery(this).css('zIndex',nb); nb--; }); } function rebuild_custom_select(parent){ // remove custom select classes jQuery(parent).removeClass('enhanced'); jQuery(parent).children('.dropdown').remove(); // reinit custom select and rebuild indexes InitCustomSelects(); rezindex(); }
Version data entries
2 entries across 2 versions & 1 rubygems