как да махна сърча от този JS скрипт

Post Reply
martinski
Нов
Нов
Posts: 26
Joined: Wed Dec 23, 2015 10:03 pm

как да махна сърча от този JS скрипт

Post by martinski » Wed Feb 03, 2016 1:04 pm

Здравейте,
моля да ми помогне как да махна само сърча от този скрипт.
благодаря много!

Code: Select all

!function&#40;&#41;&#123;var SelectParser;SelectParser=function&#40;&#41;&#123;function SelectParser&#40;&#41;&#123;this.options_index=0,this.parsed=&#91;&#93;&#125;return SelectParser.prototype.add_node=function&#40;a&#41;&#123;return"OPTGROUP"===a.nodeName.toUpperCase&#40;&#41;?this.add_group&#40;a&#41;&#58;this.add_option&#40;a&#41;&#125;,SelectParser.prototype.add_group=function&#40;a&#41;&#123;var b,c,d,e,f,g;for&#40;b=this.parsed.length,this.parsed.push&#40;&#123;array_index&#58;b,group&#58;!0,label&#58;this.escapeExpression&#40;a.label&#41;,children&#58;0,disabled&#58;a.disabled&#125;&#41;,f=a.childNodes,g=&#91;&#93;,d=0,e=f.length;e>d;d++&#41;c=f&#91;d&#93;,g.push&#40;this.add_option&#40;c,b,a.disabled&#41;&#41;;return g&#125;,SelectParser.prototype.add_option=function&#40;a,b,c&#41;&#123;return"OPTION"===a.nodeName.toUpperCase&#40;&#41;?&#40;""!==a.text?&#40;null!=b&&&#40;this.parsed&#91;b&#93;.children+=1&#41;,this.parsed.push&#40;&#123;array_index&#58;this.parsed.length,options_index&#58;this.options_index,value&#58;a.value,text&#58;a.text,html&#58;a.innerHTML,selected&#58;a.selected,disabled&#58;c===!0?c&#58;a.disabled,group_array_index&#58;b,classes&#58;a.className,style&#58;a.style.cssText&#125;&#41;&#41;&#58;this.parsed.push&#40;&#123;array_index&#58;this.parsed.length,options_index&#58;this.options_index,empty&#58;!0&#125;&#41;,this.options_index+=1&#41;&#58;void 0&#125;,SelectParser.prototype.escapeExpression=function&#40;a&#41;&#123;var b,c;return null==a||a===!1?""&#58;/&#91;\&\<\>\"\'\`&#93;/.test&#40;a&#41;?&#40;b=&#123;"<"&#58;"&lt;",">"&#58;"&gt;",'"'&#58;"&quot;","'"&#58;"&#x27;","`"&#58;"&#x60;"&#125;,c=/&&#40;?!\w+;&#41;|&#91;\<\>\"\'\`&#93;/g,a.replace&#40;c,function&#40;a&#41;&#123;return b&#91;a&#93;||"&amp;"&#125;&#41;&#41;&#58;a&#125;,SelectParser&#125;&#40;&#41;,SelectParser.select_to_array=function&#40;a&#41;&#123;var b,c,d,e,f;for&#40;c=new SelectParser,f=a.childNodes,d=0,e=f.length;e>d;d++&#41;b=f&#91;d&#93;,c.add_node&#40;b&#41;;return c.parsed&#125;,this.SelectParser=SelectParser&#125;.call&#40;this&#41;,function&#40;&#41;&#123;var AbstractChosen,a;a=this,AbstractChosen=function&#40;&#41;&#123;function AbstractChosen&#40;a,b&#41;&#123;this.form_field=a,this.options=null!=b?b&#58;&#123;&#125;,AbstractChosen.browser_is_supported&#40;&#41;&&&#40;this.is_multiple=this.form_field.multiple,this.set_default_text&#40;&#41;,this.set_default_values&#40;&#41;,this.setup&#40;&#41;,this.set_up_html&#40;&#41;,this.register_observers&#40;&#41;,this.finish_setup&#40;&#41;&#41;&#125;return AbstractChosen.prototype.set_default_values=function&#40;&#41;&#123;var a=this;return this.click_test_action=function&#40;b&#41;&#123;return a.test_active_click&#40;b&#41;&#125;,this.activate_action=function&#40;b&#41;&#123;return a.activate_field&#40;b&#41;&#125;,this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.result_single_selected=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options&#91;0&#93;&&""===this.form_field.options&#91;0&#93;.text?this.options.allow_single_deselect&#58;!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search&#58;!0,this.group_search=null!=this.options.group_search?this.options.group_search&#58;!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=this.options.single_backstroke_delete||!1,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1&#125;,AbstractChosen.prototype.set_default_text=function&#40;&#41;&#123;return this.default_text=this.form_field.getAttribute&#40;"data-placeholder"&#41;?this.form_field.getAttribute&#40;"data-placeholder"&#41;&#58;this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text&#58;this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text,this.results_none_found=this.form_field.getAttribute&#40;"data-no_results_text"&#41;||this.options.no_results_text||AbstractChosen.default_no_result_text&#125;,AbstractChosen.prototype.mouse_enter=function&#40;&#41;&#123;return this.mouse_on_container=!0&#125;,AbstractChosen.prototype.mouse_leave=function&#40;&#41;&#123;return this.mouse_on_container=!1&#125;,AbstractChosen.prototype.input_focus=function&#40;&#41;&#123;var a=this;if&#40;this.is_multiple&#41;&#123;if&#40;!this.active_field&#41;return setTimeout&#40;function&#40;&#41;&#123;return a.container_mousedown&#40;&#41;&#125;,50&#41;&#125;else if&#40;!this.active_field&#41;return this.activate_field&#40;&#41;&#125;,AbstractChosen.prototype.input_blur=function&#40;&#41;&#123;var a=this;return this.mouse_on_container?void 0&#58;&#40;this.active_field=!1,setTimeout&#40;function&#40;&#41;&#123;return a.blur_test&#40;&#41;&#125;,100&#41;&#41;&#125;,AbstractChosen.prototype.results_option_build=function&#40;a&#41;&#123;var b,c,d,e,f;for&#40;b="",f=this.results_data,d=0,e=f.length;e>d;d++&#41;c=f&#91;d&#93;,c.group&&&#40;c.search_match||c.group_match&#41;?b+=this.result_add_group&#40;c&#41;&#58;!c.empty&&c.search_match&&&#40;b+=this.result_add_option&#40;c&#41;&#41;,&#40;null!=a?a.first&#58;void 0&#41;&&&#40;c.selected&&this.is_multiple?this.choice_build&#40;c&#41;&#58;c.selected&&!this.is_multiple&&this.single_set_selected_text&#40;c.text&#41;&#41;;return b&#125;,AbstractChosen.prototype.result_add_option=function&#40;a&#41;&#123;var b,c;return b=&#91;&#93;,a.disabled||a.selected&&this.is_multiple||b.push&#40;"active-result"&#41;,!a.disabled||a.selected&&this.is_multiple||b.push&#40;"disabled-result"&#41;,a.selected&&b.push&#40;"result-selected"&#41;,null!=a.group_array_index&&b.push&#40;"group-option"&#41;,""!==a.classes&&b.push&#40;a.classes&#41;,c=""!==a.style.cssText?' style="'+a.style+'"'&#58;"",'<li class="'+b.join&#40;" "&#41;+'"'+c+' data-option-array-index="'+a.array_index+'">'+a.search_text+"</li>"&#125;,AbstractChosen.prototype.result_add_group=function&#40;a&#41;&#123;return'<li class="group-result">'+a.search_text+"</li>"&#125;,AbstractChosen.prototype.results_update_field=function&#40;&#41;&#123;return this.set_default_text&#40;&#41;,this.is_multiple||this.results_reset_cleanup&#40;&#41;,this.result_clear_highlight&#40;&#41;,this.result_single_selected=null,this.results_build&#40;&#41;,this.results_showing?this.winnow_results&#40;&#41;&#58;void 0&#125;,AbstractChosen.prototype.results_toggle=function&#40;&#41;&#123;return this.results_showing?this.results_hide&#40;&#41;&#58;this.results_show&#40;&#41;&#125;,AbstractChosen.prototype.results_search=function&#40;&#41;&#123;return this.results_showing?this.winnow_results&#40;&#41;&#58;this.results_show&#40;&#41;&#125;,AbstractChosen.prototype.winnow_results=function&#40;&#41;&#123;var a,b,c,d,e,f,g,h,i,j,k;for&#40;this.no_results_clear&#40;&#41;,d=0,e=this.get_search_text&#40;&#41;,c=this.search_contains?""&#58;"^",b=new RegExp&#40;c+e.replace&#40;/&#91;-&#91;\&#93;&#123;&#125;&#40;&#41;*+?.,\\^$|#\s&#93;/g,"\\$&"&#41;,"i"&#41;,h=new RegExp&#40;e.replace&#40;/&#91;-&#91;\&#93;&#123;&#125;&#40;&#41;*+?.,\\^$|#\s&#93;/g,"\\$&"&#41;,"i"&#41;,k=this.results_data,i=0,j=k.length;j>i;i++&#41;a=k&#91;i&#93;,a.empty||&#40;a.group&&&#40;a.group_match=!1&#41;,&#40;!a.group||this.group_search&#41;&&&#40;a.search_match=!1,a.search_text=a.group?a.label&#58;a.html,a.search_match=this.search_string_match&#40;a.search_text,b&#41;,a.search_match&&&#40;d+=1&#41;,a.search_match?&#40;e.length&&&#40;f=a.search_text.search&#40;h&#41;,g=a.search_text.substr&#40;0,f+e.length&#41;+"</em>"+a.search_text.substr&#40;f+e.length&#41;,a.search_text=g.substr&#40;0,f&#41;+"<em>"+g.substr&#40;f&#41;&#41;,null!=a.group_array_index&&&#40;this.results_data&#91;a.group_array_index&#93;.group_match=!0&#41;&#41;&#58;null!=a.group_array_index&&this.results_data&#91;a.group_array_index&#93;.search_match&&&#40;a.search_match=!0&#41;&#41;&#41;;return 1>d&&e.length?&#40;this.update_results_content&#40;""&#41;,this.result_clear_highlight&#40;&#41;,this.no_results&#40;e&#41;&#41;&#58;&#40;this.update_results_content&#40;this.results_option_build&#40;&#41;&#41;,this.winnow_results_set_highlight&#40;&#41;&#41;&#125;,AbstractChosen.prototype.search_string_match=function&#40;a,b&#41;&#123;var c,d,e,f;if&#40;b.test&#40;a&#41;&#41;return!0;if&#40;this.enable_split_word_search&&&#40;a.indexOf&#40;" "&#41;>=0||0===a.indexOf&#40;"&#91;"&#41;&#41;&&&#40;d=a.replace&#40;/\&#91;|\&#93;/g,""&#41;.split&#40;" "&#41;,d.length&#41;&#41;for&#40;e=0,f=d.length;f>e;e++&#41;if&#40;c=d&#91;e&#93;,b.test&#40;c&#41;&#41;return!0&#125;,AbstractChosen.prototype.choices_count=function&#40;&#41;&#123;var a,b,c,d;if&#40;null!=this.selected_option_count&#41;return this.selected_option_count;for&#40;this.selected_option_count=0,d=this.form_field.options,b=0,c=d.length;c>b;b++&#41;a=d&#91;b&#93;,a.selected&&&#40;this.selected_option_count+=1&#41;;return this.selected_option_count&#125;,AbstractChosen.prototype.choices_click=function&#40;a&#41;&#123;return a.preventDefault&#40;&#41;,this.results_showing||this.is_disabled?void 0&#58;this.results_show&#40;&#41;&#125;,AbstractChosen.prototype.keyup_checker=function&#40;a&#41;&#123;var b,c;switch&#40;b=null!=&#40;c=a.which&#41;?c&#58;a.keyCode,this.search_field_scale&#40;&#41;,b&#41;&#123;case 8&#58;if&#40;this.is_multiple&&this.backstroke_length<1&&this.choices_count&#40;&#41;>0&#41;return this.keydown_backstroke&#40;&#41;;if&#40;!this.pending_backstroke&#41;return this.result_clear_highlight&#40;&#41;,this.results_search&#40;&#41;;break;case 13&#58;if&#40;a.preventDefault&#40;&#41;,this.results_showing&#41;return this.result_select&#40;a&#41;;break;case 27&#58;return this.results_showing&&this.results_hide&#40;&#41;,!0;case 9&#58;case 38&#58;case 40&#58;case 16&#58;case 91&#58;case 17&#58;break;default&#58;return this.results_search&#40;&#41;&#125;&#125;,AbstractChosen.prototype.container_width=function&#40;&#41;&#123;return null!=this.options.width?this.options.width&#58;""+this.form_field.offsetWidth+"px"&#125;,AbstractChosen.browser_is_supported=function&#40;&#41;&#123;var a;return"Microsoft Internet Explorer"===window.navigator.appName?null!==&#40;a=document.documentMode&#41;&&a>=8&#58;!0&#125;,AbstractChosen.default_multiple_text="Select Some Options",AbstractChosen.default_single_text="Select an Option",AbstractChosen.default_no_result_text="No results match",AbstractChosen&#125;&#40;&#41;,a.AbstractChosen=AbstractChosen&#125;.call&#40;this&#41;,function&#40;&#41;&#123;var a,Chosen,b,c,d=&#123;&#125;.hasOwnProperty,e=function&#40;a,b&#41;&#123;function c&#40;&#41;&#123;this.constructor=a&#125;for&#40;var e in b&#41;d.call&#40;b,e&#41;&&&#40;a&#91;e&#93;=b&#91;e&#93;&#41;;return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a&#125;;b=this,a=jQuery,a.fn.extend&#40;&#123;chosen&#58;function&#40;b&#41;&#123;return AbstractChosen.browser_is_supported&#40;&#41;?this.each&#40;function&#40;&#41;&#123;var c;return c=a&#40;this&#41;,c.hasClass&#40;"chzn-done"&#41;?void 0&#58;c.data&#40;"chosen",new Chosen&#40;this,b&#41;&#41;&#125;&#41;&#58;this&#125;&#125;&#41;,Chosen=function&#40;d&#41;&#123;function Chosen&#40;&#41;&#123;return c=Chosen.__super__.constructor.apply&#40;this,arguments&#41;&#125;return e&#40;Chosen,d&#41;,Chosen.prototype.setup=function&#40;&#41;&#123;return this.form_field_jq=a&#40;this.form_field&#41;,this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass&#40;"chzn-rtl"&#41;&#125;,Chosen.prototype.finish_setup=function&#40;&#41;&#123;return this.form_field_jq.addClass&#40;"chzn-done"&#41;&#125;,Chosen.prototype.set_up_html=function&#40;&#41;&#123;var b,c;return b=&#91;"chzn-container"&#93;,b.push&#40;"chzn-container-"+&#40;this.is_multiple?"multi"&#58;"single"&#41;&#41;,this.inherit_select_classes&&this.form_field.className&&b.push&#40;this.form_field.className&#41;,this.is_rtl&&b.push&#40;"chzn-rtl"&#41;,c=&#123;"class"&#58;b.join&#40;" "&#41;,style&#58;"width&#58; "+this.container_width&#40;&#41;+";",title&#58;this.form_field.title&#125;,this.form_field.id.length&&&#40;c.id=this.form_field.id.replace&#40;/&#91;^\w&#93;/g,"_"&#41;+"_chzn"&#41;,this.container=a&#40;"<div />",c&#41;,this.is_multiple?this.container.html&#40;'<ul class="chzn-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width&#58;25px;" /></li></ul><div class="chzn-drop"><ul class="chzn-results"></ul></div>'&#41;&#58;this.container.html&#40;'<a href="javascript&#58;void&#40;0&#41;" class="chzn-single chzn-default" tabindex="-1"><span>'
+this.default_text+'</span><div><b></b></div></a><div class="chzn-drop"><div class="chzn-search"><input type="text" autocomplete="off" /></div><ul class="chzn-results"></ul></div>'&#41;,
this.form_field_jq.hide&#40;&#41;.after&#40;this.container&#41;,this.dropdown=this.container.find&#40;"div.chzn-drop"&#41;.first&#40;&#41;,this.search_field=this.container.find&#40;"input"&#41;.first&#40;&#41;,this.search_results=this.container.find&#40;"ul.chzn-results"&#41;.first&#40;&#41;,this.search_field_scale&#40;&#41;,this.search_no_results=this.container.find&#40;"li.no-results"&#41;.first&#40;&#41;,this.is_multiple?&#40;this.search_choices=this.container.find&#40;"ul.chzn-choices"&#41;.first&#40;&#41;,this.search_container=this.container.find&#40;"li.search-field"&#41;.first&#40;&#41;&#41;&#58;&#40;this.search_container=this.container.find&#40;"div.chzn-search"&#41;.first&#40;&#41;,this.selected_item=this.container.find&#40;".chzn-single"&#41;.first&#40;&#41;&#41;,this.results_build&#40;&#41;,this.set_tab_index&#40;&#41;,this.set_label_behavior&#40;&#41;,this.form_field_jq.trigger&#40;"liszt&#58;ready",&#123;chosen&#58;this&#125;&#41;&#125;,Chosen.prototype.register_observers=function&#40;&#41;&#123;var a=this;return this.container.mousedown&#40;function&#40;b&#41;&#123;a.container_mousedown&#40;b&#41;&#125;&#41;,this.container.mouseup&#40;function&#40;b&#41;&#123;a.container_mouseup&#40;b&#41;&#125;&#41;,this.container.mouseenter&#40;function&#40;b&#41;&#123;a.mouse_enter&#40;b&#41;&#125;&#41;,this.container.mouseleave&#40;function&#40;b&#41;&#123;a.mouse_leave&#40;b&#41;&#125;&#41;,this.search_results.mouseup&#40;function&#40;b&#41;&#123;a.search_results_mouseup&#40;b&#41;&#125;&#41;,this.search_results.mouseover&#40;function&#40;b&#41;&#123;a.search_results_mouseover&#40;b&#41;&#125;&#41;,this.search_results.mouseout&#40;function&#40;b&#41;&#123;a.search_results_mouseout&#40;b&#41;&#125;&#41;,this.search_results.bind&#40;"mousewheel DOMMouseScroll",function&#40;b&#41;&#123;a.search_results_mousewheel&#40;b&#41;&#125;&#41;,this.form_field_jq.bind&#40;"liszt&#58;updated",function&#40;b&#41;&#123;a.results_update_field&#40;b&#41;&#125;&#41;,this.form_field_jq.bind&#40;"liszt&#58;activate",function&#40;b&#41;&#123;a.activate_field&#40;b&#41;&#125;&#41;,this.form_field_jq.bind&#40;"liszt&#58;open",function&#40;b&#41;&#123;a.container_mousedown&#40;b&#41;&#125;&#41;,this.search_field.blur&#40;function&#40;b&#41;&#123;a.input_blur&#40;b&#41;&#125;&#41;,this.search_field.keyup&#40;function&#40;b&#41;&#123;a.keyup_checker&#40;b&#41;&#125;&#41;,this.search_field.keydown&#40;function&#40;b&#41;&#123;a.keydown_checker&#40;b&#41;&#125;&#41;,this.search_field.focus&#40;function&#40;b&#41;&#123;a.input_focus&#40;b&#41;&#125;&#41;,this.is_multiple?this.search_choices.click&#40;function&#40;b&#41;&#123;a.choices_click&#40;b&#41;&#125;&#41;&#58;this.container.click&#40;function&#40;a&#41;&#123;a.preventDefault&#40;&#41;&#125;&#41;&#125;,Chosen.prototype.search_field_disabled=function&#40;&#41;&#123;return this.is_disabled=this.form_field_jq&#91;0&#93;.disabled,this.is_disabled?&#40;this.container.addClass&#40;"chzn-disabled"&#41;,this.search_field&#91;0&#93;.disabled=!0,this.is_multiple||this.selected_item.unbind&#40;"focus",this.activate_action&#41;,this.close_field&#40;&#41;&#41;&#58;&#40;this.container.removeClass&#40;"chzn-disabled"&#41;,this.search_field&#91;0&#93;.disabled=!1,this.is_multiple?void 0&#58;this.selected_item.bind&#40;"focus",this.activate_action&#41;&#41;&#125;,Chosen.prototype.container_mousedown=function&#40;b&#41;&#123;return this.is_disabled||&#40;b&&"mousedown"===b.type&&!this.results_showing&&b.preventDefault&#40;&#41;,null!=b&&a&#40;b.target&#41;.hasClass&#40;"search-choice-close"&#41;&#41;?void 0&#58;&#40;this.active_field?this.is_multiple||!b||a&#40;b.target&#41;&#91;0&#93;!==this.selected_item&#91;0&#93;&&!a&#40;b.target&#41;.parents&#40;"a.chzn-single"&#41;.length||&#40;b.preventDefault&#40;&#41;,this.results_toggle&#40;&#41;&#41;&#58;&#40;this.is_multiple&&this.search_field.val&#40;""&#41;,a&#40;document&#41;.click&#40;this.click_test_action&#41;,this.results_show&#40;&#41;&#41;,this.activate_field&#40;&#41;&#41;&#125;,Chosen.prototype.container_mouseup=function&#40;a&#41;&#123;return"ABBR"!==a.target.nodeName||this.is_disabled?void 0&#58;this.results_reset&#40;a&#41;&#125;,Chosen.prototype.search_results_mousewheel=function&#40;a&#41;&#123;var b,c,d;return b=-&#40;null!=&#40;c=a.originalEvent&#41;?c.wheelDelta&#58;void 0&#41;||&#40;null!=&#40;d=a.originialEvent&#41;?d.detail&#58;void 0&#41;,null!=b?&#40;a.preventDefault&#40;&#41;,"DOMMouseScroll"===a.type&&&#40;b=40*b&#41;,this.search_results.scrollTop&#40;b+this.search_results.scrollTop&#40;&#41;&#41;&#41;&#58;void 0&#125;,Chosen.prototype.blur_test=function&#40;&#41;&#123;return!this.active_field&&this.container.hasClass&#40;"chzn-container-active"&#41;?this.close_field&#40;&#41;&#58;void 0&#125;,Chosen.prototype.close_field=function&#40;&#41;&#123;return a&#40;document&#41;.unbind&#40;"click",this.click_test_action&#41;,this.active_field=!1,this.results_hide&#40;&#41;,this.container.removeClass&#40;"chzn-container-active"&#41;,this.clear_backstroke&#40;&#41;,this.show_search_field_default&#40;&#41;,this.search_field_scale&#40;&#41;&#125;,Chosen.prototype.activate_field=function&#40;&#41;&#123;return this.container.addClass&#40;"chzn-container-active"&#41;,this.active_field=!0,this.search_field.val&#40;this.search_field.val&#40;&#41;&#41;,this.search_field.focus&#40;&#41;&#125;,Chosen.prototype.test_active_click=function&#40;b&#41;&#123;return this.container.is&#40;a&#40;b.target&#41;.closest&#40;".chzn-container"&#41;&#41;?this.active_field=!0&#58;this.close_field&#40;&#41;&#125;,Chosen.prototype.results_build=function&#40;&#41;&#123;return this.parsing=!0,this.selected_option_count=null,this.results_data=b.SelectParser.select_to_array&#40;this.form_field&#41;,this.is_multiple?this.search_choices.find&#40;"li.search-choice"&#41;.remove&#40;&#41;&#58;this.is_multiple||&#40;this.single_set_selected_text&#40;&#41;,this.disable_search||this.form_field.options.length<=this.disable_search_threshold?&#40;this.search_field&#91;0&#93;.readOnly=!0,this.container.addClass&#40;"chzn-container-single-nosearch"&#41;&#41;&#58;&#40;this.search_field&#91;0&#93;.readOnly=!1,this.container.removeClass&#40;"chzn-container-single-nosearch"&#41;&#41;&#41;,this.update_results_content&#40;this.results_option_build&#40;&#123;first&#58;!0&#125;&#41;&#41;,this.search_field_disabled&#40;&#41;,this.show_search_field_default&#40;&#41;,this.search_field_scale&#40;&#41;,this.parsing=!1&#125;,Chosen.prototype.result_do_highlight=function&#40;a&#41;&#123;var b,c,d,e,f;if&#40;a.length&#41;&#123;if&#40;this.result_clear_highlight&#40;&#41;,this.result_highlight=a,this.result_highlight.addClass&#40;"highlighted"&#41;,d=parseInt&#40;this.search_results.css&#40;"maxHeight"&#41;,10&#41;,f=this.search_results.scrollTop&#40;&#41;,e=d+f,c=this.result_highlight.position&#40;&#41;.top+this.search_results.scrollTop&#40;&#41;,b=c+this.result_highlight.outerHeight&#40;&#41;,b>=e&#41;return this.search_results.scrollTop&#40;b-d>0?b-d&#58;0&#41;;if&#40;f>c&#41;return this.search_results.scrollTop&#40;c&#41;&#125;&#125;,Chosen.prototype.result_clear_highlight=function&#40;&#41;&#123;return this.result_highlight&&this.result_highlight.removeClass&#40;"highlighted"&#41;,this.result_highlight=null&#125;,Chosen.prototype.results_show=function&#40;&#41;&#123;return this.is_multiple&&this.max_selected_options<=this.choices_count&#40;&#41;?&#40;this.form_field_jq.trigger&#40;"liszt&#58;maxselected",&#123;chosen&#58;this&#125;&#41;,!1&#41;&#58;&#40;this.container.addClass&#40;"chzn-with-drop"&#41;,this.form_field_jq.trigger&#40;"liszt&#58;showing_dropdown",&#123;chosen&#58;this&#125;&#41;,this.results_showing=!0,this.search_field.focus&#40;&#41;,this.search_field.val&#40;this.search_field.val&#40;&#41;&#41;,this.winnow_results&#40;&#41;&#41;&#125;,Chosen.prototype.update_results_content=function&#40;a&#41;&#123;return this.search_results.html&#40;a&#41;&#125;,Chosen.prototype.results_hide=function&#40;&#41;&#123;return this.results_showing&&&#40;this.result_clear_highlight&#40;&#41;,this.container.removeClass&#40;"chzn-with-drop"&#41;,this.form_field_jq.trigger&#40;"liszt&#58;hiding_dropdown",&#123;chosen&#58;this&#125;&#41;&#41;,this.results_showing=!1&#125;,Chosen.prototype.set_tab_index=function&#40;&#41;&#123;var a;return this.form_field_jq.attr&#40;"tabindex"&#41;?&#40;a=this.form_field_jq.attr&#40;"tabindex"&#41;,this.form_field_jq.attr&#40;"tabindex",-1&#41;,this.search_field.attr&#40;"tabindex",a&#41;&#41;&#58;void 0&#125;,Chosen.prototype.set_label_behavior=function&#40;&#41;&#123;var b=this;return this.form_field_label=this.form_field_jq.parents&#40;"label"&#41;,!this.form_field_label.length&&this.form_field.id.length&&&#40;this.form_field_label=a&#40;"label&#91;for='"+this.form_field.id+"'&#93;"&#41;&#41;,this.form_field_label.length>0?this.form_field_label.click&#40;function&#40;a&#41;&#123;return b.is_multiple?b.container_mousedown&#40;a&#41;&#58;b.activate_field&#40;&#41;&#125;&#41;&#58;void 0&#125;,Chosen.prototype.show_search_field_default=function&#40;&#41;&#123;return this.is_multiple&&this.choices_count&#40;&#41;<1&&!this.active_field?&#40;this.search_field.val&#40;this.default_text&#41;,this.search_field.addClass&#40;"default"&#41;&#41;&#58;&#40;this.search_field.val&#40;""&#41;,this.search_field.removeClass&#40;"default"&#41;&#41;&#125;,Chosen.prototype.search_results_mouseup=function&#40;b&#41;&#123;var c;return c=a&#40;b.target&#41;.hasClass&#40;"active-result"&#41;?a&#40;b.target&#41;&#58;a&#40;b.target&#41;.parents&#40;".active-result"&#41;.first&#40;&#41;,c.length?&#40;this.result_highlight=c,this.result_select&#40;b&#41;,this.search_field.focus&#40;&#41;&#41;&#58;void 0&#125;,Chosen.prototype.search_results_mouseover=function&#40;b&#41;&#123;var c;return c=a&#40;b.target&#41;.hasClass&#40;"active-result"&#41;?a&#40;b.target&#41;&#58;a&#40;b.target&#41;.parents&#40;".active-result"&#41;.first&#40;&#41;,c?this.result_do_highlight&#40;c&#41;&#58;void 0&#125;,Chosen.prototype.search_results_mouseout=function&#40;b&#41;&#123;return a&#40;b.target&#41;.hasClass&#40;"active-result"&#41;?this.result_clear_highlight&#40;&#41;&#58;void 0&#125;,Chosen.prototype.choice_build=function&#40;b&#41;&#123;var c,d,e=this;return c=a&#40;"<li />",&#123;"class"&#58;"search-choice"&#125;&#41;.html&#40;"<span>"+b.html+"</span>"&#41;,b.disabled?c.addClass&#40;"search-choice-disabled"&#41;&#58;&#40;d=a&#40;"<a />",&#123;href&#58;"#","class"&#58;"search-choice-close",rel&#58;b.array_index&#125;&#41;,d.click&#40;function&#40;a&#41;&#123;return e.choice_destroy_link_click&#40;a&#41;&#125;&#41;,c.append&#40;d&#41;&#41;,this.search_container.before&#40;c&#41;&#125;,Chosen.prototype.choice_destroy_link_click=function&#40;b&#41;&#123;return b.preventDefault&#40;&#41;,b.stopPropagation&#40;&#41;,this.is_disabled?void 0&#58;this.choice_destroy&#40;a&#40;b.target&#41;&#41;&#125;,Chosen.prototype.choice_destroy=function&#40;a&#41;&#123;return this.result_deselect&#40;a.attr&#40;"rel"&#41;&#41;?&#40;this.show_search_field_default&#40;&#41;,this.is_multiple&&this.choices_count&#40;&#41;>0&&this.search_field.val&#40;&#41;.length<1&&this.results_hide&#40;&#41;,a.parents&#40;"li"&#41;.first&#40;&#41;.remove&#40;&#41;,this.search_field_scale&#40;&#41;&#41;&#58;void 0&#125;,Chosen.prototype.results_reset=function&#40;&#41;&#123;return this.form_field.options&#91;0&#93;.selected=!0,this.selected_option_count=null,this.single_set_selected_text&#40;&#41;,this.show_search_field_default&#40;&#41;,this.results_reset_cleanup&#40;&#41;,this.form_field_jq.trigger&#40;"change"&#41;,this.active_field?this.results_hide&#40;&#41;&#58;void 0&#125;,Chosen.prototype.results_reset_cleanup=function&#40;&#41;&#123;return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find&#40;"abbr"&#41;.remove&#40;&#41;&#125;,Chosen.prototype.result_select=function&#40;a&#41;&#123;var b,c;return this.result_highlight?&#40;b=this.result_highlight,this.result_clear_highlight&#40;&#41;,this.is_multiple&&this.max_selected_options<=this.choices_count&#40;&#41;?&#40;this.form_field_jq.trigger&#40;"liszt&#58;maxselected",&#123;chosen&#58;this&#125;&#41;,!1&#41;&#58;&#40;this.is_multiple?b.removeClass&#40;"active-result"&#41;&#58;&#40;this.search_results.find&#40;".result-selected"&#41;.removeClass&#40;"result-selected"&#41;,this.result_single_selected=b&#41;,b.addClass&#40;"result-selected"&#41;,c=this.results_data&#91;b&#91;0&#93;.getAttribute&#40;"data-option-array-index"&#41;&#93;,c.selected=!0,this.form_field.options&#91;c.options_index&#93;.selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build&#40;c&#41;&#58;this.single_set_selected_text&#40;c.text&#41;,&#40;a.metaKey||a.ctrlKey&#41;&&this.is_multiple||this.results_hide&#40;&#41;,this.search_field.val&#40;""&#41;,&#40;this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex&#41;&&this.form_field_jq.trigger&#40;"change",&#123;selected&#58;this.form_field.options&#91;c.options_index&#93;.value&#125;&#41;,this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale&#40;&#41;&#41;&#41;&#58;void 0&#125;,Chosen.prototype.single_set_selected_text=function&#40;a&#41;&#123;return null==a&&&#40;a=this.default_text&#41;,a===this.default_text?this.selected_item.addClass&#40;"chzn-default"&#41;&#58;&#40;this.single_deselect_control_build&#40;&#41;,this.selected_item.removeClass&#40;"chzn-default"&#41;&#41;,this.selected_item.find&#40;"span"&#41;.text&#40;a&#41;&#125;,Chosen.prototype.result_deselect=function&#40;a&#41;&#123;var b;return b=this.results_data&#91;a&#93;,this.form_field.options&#91;b.options_index&#93;.disabled?!1&#58;&#40;b.selected=!1,this.form_field.options&#91;b.options_index&#93;.selected=!1,this.selected_option_count=null,this.result_clear_highlight&#40;&#41;,this.results_showing&&this.winnow_results&#40;&#41;,this.form_field_jq.trigger&#40;"change",&#123;deselected&#58;this.form_field.options&#91;b.options_index&#93;.value&#125;&#41;,this.search_field_scale&#40;&#41;,!0&#41;&#125;,Chosen.prototype.single_deselect_control_build=function&#40;&#41;&#123;return this.allow_single_deselect?&#40;this.selected_item.find&#40;"abbr"&#41;.length||this.selected_item.find&#40;"span"&#41;.first&#40;&#41;.after&#40;'<abbr class="search-choice-close"></abbr>'&#41;,this.selected_item.addClass&#40;"chzn-single-with-deselect"&#41;&#41;&#58;void 0&#125;,Chosen.prototype.get_search_text=function&#40;&#41;&#123;return this.search_field.val&#40;&#41;===this.default_text?""&#58;a&#40;"<div/>"&#41;.text&#40;a.trim&#40;this.search_field.val&#40;&#41;&#41;&#41;.html&#40;&#41;&#125;,Chosen.prototype.winnow_results_set_highlight=function&#40;&#41;&#123;var a,b;return b=this.is_multiple?&#91;&#93;&#58;this.search_results.find&#40;".result-selected.active-result"&#41;,a=b.length?b.first&#40;&#41;&#58;this.search_results.find&#40;".active-result"&#41;.first&#40;&#41;,null!=a?this.result_do_highlight&#40;a&#41;&#58;void 0&#125;,Chosen.prototype.no_results=function&#40;b&#41;&#123;var c;return c=a&#40;'<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'&#41;,c.find&#40;"span"&#41;.first&#40;&#41;.html&#40;b&#41;,this.search_results.append&#40;c&#41;&#125;,Chosen.prototype.no_results_clear=function&#40;&#41;&#123;return this.search_results.find&#40;".no-results"&#41;.remove&#40;&#41;&#125;,Chosen.prototype.keydown_arrow=function&#40;&#41;&#123;var a;return this.results_showing&&this.result_highlight?&#40;a=this.result_highlight.nextAll&#40;"li.active-result"&#41;.first&#40;&#41;&#41;?this.result_do_highlight&#40;a&#41;&#58;void 0&#58;this.results_show&#40;&#41;&#125;,Chosen.prototype.keyup_arrow=function&#40;&#41;&#123;var a;return this.results_showing||this.is_multiple?this.result_highlight?&#40;a=this.result_highlight.prevAll&#40;"li.active-result"&#41;,a.length?this.result_do_highlight&#40;a.first&#40;&#41;&#41;&#58;&#40;this.choices_count&#40;&#41;>0&&this.results_hide&#40;&#41;,this.result_clear_highlight&#40;&#41;&#41;&#41;&#58;void 0&#58;this.results_show&#40;&#41;&#125;,Chosen.prototype.keydown_backstroke=function&#40;&#41;&#123;var a;return this.pending_backstroke?&#40;this.choice_destroy&#40;this.pending_backstroke.find&#40;"a"&#41;.first&#40;&#41;&#41;,this.clear_backstroke&#40;&#41;&#41;&#58;&#40;a=this.search_container.siblings&#40;"li.search-choice"&#41;.last&#40;&#41;,a.length&&!a.hasClass&#40;"search-choice-disabled"&#41;?&#40;this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke&#40;&#41;&#58;this.pending_backstroke.addClass&#40;"search-choice-focus"&#41;&#41;&#58;void 0&#41;&#125;,Chosen.prototype.clear_backstroke=function&#40;&#41;&#123;return this.pending_backstroke&&this.pending_backstroke.removeClass&#40;"search-choice-focus"&#41;,this.pending_backstroke=null&#125;,Chosen.prototype.keydown_checker=function&#40;a&#41;&#123;var b,c;switch&#40;b=null!=&#40;c=a.which&#41;?c&#58;a.keyCode,this.search_field_scale&#40;&#41;,8!==b&&this.pending_backstroke&&this.clear_backstroke&#40;&#41;,b&#41;&#123;case 8&#58;this.backstroke_length=this.search_field.val&#40;&#41;.length;break;case 9&#58;this.results_showing&&!this.is_multiple&&this.result_select&#40;a&#41;,this.mouse_on_container=!1;break;case 13&#58;a.preventDefault&#40;&#41;;break;case 38&#58;a.preventDefault&#40;&#41;,this.keyup_arrow&#40;&#41;;break;case 40&#58;a.preventDefault&#40;&#41;,this.keydown_arrow&#40;&#41;&#125;&#125;,Chosen.prototype.search_field_scale=function&#40;&#41;&#123;var b,c,d,e,f,g,h,i,j;if&#40;this.is_multiple&#41;&#123;for&#40;d=0,h=0,f="position&#58;absolute; left&#58; -1000px; top&#58; -1000px; display&#58;none;",g=&#91;"font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"&#93;,i=0,j=g.length;j>i;i++&#41;e=g&#91;i&#93;,f+=e+"&#58;"+this.search_field.css&#40;e&#41;+";";return b=a&#40;"<div />",&#123;style&#58;f&#125;&#41;,b.text&#40;this.search_field.val&#40;&#41;&#41;,a&#40;"body"&#41;.append&#40;b&#41;,h=b.width&#40;&#41;+25,b.remove&#40;&#41;,c=this.container.outerWidth&#40;&#41;,h>c-10&&&#40;h=c-10&#41;,this.search_field.css&#40;&#123;width&#58;h+"px"&#125;&#41;&#125;&#125;,Chosen&#125;&#40;AbstractChosen&#41;,b.Chosen=Chosen&#125;.call&#40;this&#41;;

uphero
Потребител
Потребител
Posts: 787
Joined: Mon Feb 20, 2012 12:26 pm
Answers: 34
Location: Казанлък
Contact:

Post by uphero » Wed Feb 03, 2016 1:08 pm


martinski
Нов
Нов
Posts: 26
Joined: Wed Dec 23, 2015 10:03 pm

Post by martinski » Wed Feb 03, 2016 1:12 pm

Здравей и благодаря. но така се махна и целия дизайн на js освен сърча

martinski
Нов
Нов
Posts: 26
Joined: Wed Dec 23, 2015 10:03 pm

Post by martinski » Wed Feb 03, 2016 1:19 pm

като се замисля ако няма сърч изобщо не ми трябва и жава скрипт но искам да запазя дизайна който е в този файл.

а в php-то използвам това

Code: Select all

                                                    <select id="select01" class="chzn-select" style="width&#58; 150px">
а в headara зареждам това

Code: Select all

        <link rel="stylesheet" media="screen" href="themes/vendors/chosen.min.css">
        <script type="text/javascript" src="themes/vendors/selectize/dist/js/standalone/selectize.min.js"></script>
как да направя само дизайна да си запазя на JS ?


Code: Select all

/* Chosen v0.13.0 | &#40;c&#41; 2011-2013 by Harvest | MIT License, https&#58;//github.com/harvesthq/chosen/blob/master/LICENSE.md */

.chzn-container&#123;position&#58;relative;display&#58;inline-block;vertical-align&#58;middle;font-size&#58;13px;zoom&#58;1;*display&#58;inline&#125;.chzn-container .chzn-drop&#123;position&#58;absolute;top&#58;100%;left&#58;-9999px;z-index&#58;1010;-webkit-box-sizing&#58;border-box;-moz-box-sizing&#58;border-box;box-sizing&#58;border-box;width&#58;100%;border&#58;1px solid #aaa;border-top&#58;0;background&#58;#fff;box-shadow&#58;0 4px 5px rgba&#40;0,0,0,.15&#41;&#125;.chzn-container.chzn-with-drop .chzn-drop&#123;left&#58;0&#125;.chzn-container-single .chzn-single&#123;position&#58;relative;display&#58;block;overflow&#58;hidden;padding&#58;0 0 0 8px;height&#58;23px;border&#58;1px solid #aaa;border-radius&#58;5px;background-color&#58;#fff;background&#58;-webkit-gradient&#40;linear,50% 0,50% 100%,color-stop&#40;20%,#fff&#41;,color-stop&#40;50%,#f6f6f6&#41;,color-stop&#40;52%,#eee&#41;,color-stop&#40;100%,#f4f4f4&#41;&#41;;background&#58;-webkit-linear-gradient&#40;top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%&#41;;background&#58;-moz-linear-gradient&#40;top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%&#41;;background&#58;-o-linear-gradient&#40;top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%&#41;;background&#58;linear-gradient&#40;top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%&#41;;background-clip&#58;padding-box;box-shadow&#58;0 0 3px #fff inset,0 1px 1px rgba&#40;0,0,0,.1&#41;;color&#58;#444;text-decoration&#58;none;white-space&#58;nowrap;line-height&#58;24px&#125;.chzn-container-single .chzn-default&#123;color&#58;#999&#125;.chzn-container-single .chzn-single span&#123;display&#58;block;overflow&#58;hidden;margin-right&#58;26px;text-overflow&#58;ellipsis;white-space&#58;nowrap&#125;.chzn-container-single .chzn-single-with-deselect span&#123;margin-right&#58;38px&#125;.chzn-container-single .chzn-single abbr&#123;position&#58;absolute;top&#58;6px;right&#58;26px;display&#58;block;width&#58;12px;height&#58;12px;background&#58;url&#40;chosen-sprite.png&#41; -42px 1px no-repeat;font-size&#58;1px&#125;.chzn-container-single .chzn-single abbr&#58;hover&#123;background-position&#58;-42px -10px&#125;.chzn-container-single.chzn-disabled .chzn-single abbr&#58;hover&#123;background-position&#58;-42px -10px&#125;.chzn-container-single .chzn-single div&#123;position&#58;absolute;top&#58;0;right&#58;0;display&#58;block;width&#58;18px;height&#58;100%&#125;.chzn-container-single .chzn-single div b&#123;display&#58;block;width&#58;100%;height&#58;100%;background&#58;url&#40;chosen-sprite.png&#41; no-repeat 0 2px&#125;.chzn-container-single .chzn-search&#123;position&#58;relative;z-index&#58;1010;margin&#58;0;padding&#58;3px 4px;white-space&#58;nowrap&#125;.chzn-container-single .chzn-search input&#123;-webkit-box-sizing&#58;border-box;-moz-box-sizing&#58;border-box;box-sizing&#58;border-box;margin&#58;1px 0;padding&#58;4px 20px 4px 5px;width&#58;100%;outline&#58;0;border&#58;1px solid #aaa;background&#58;#fff url&#40;chosen-sprite.png&#41; no-repeat 100% -20px;background&#58;url&#40;chosen-sprite.png&#41; no-repeat 100% -20px,-webkit-gradient&#40;linear,50% 0,50% 100%,color-stop&#40;1%,#eee&#41;,color-stop&#40;15%,#fff&#41;&#41;;background&#58;url&#40;chosen-sprite.png&#41; no-repeat 100% -20px,-webkit-linear-gradient&#40;#eee 1%,#fff 15%&#41;;background&#58;url&#40;chosen-sprite.png&#41; no-repeat 100% -20px,-moz-linear-gradient&#40;#eee 1%,#fff 15%&#41;;background&#58;url&#40;chosen-sprite.png&#41; no-repeat 100% -20px,-o-linear-gradient&#40;#eee 1%,#fff 15%&#41;;background&#58;url&#40;chosen-sprite.png&#41; no-repeat 100% -20px,linear-gradient&#40;#eee 1%,#fff 15%&#41;;font-size&#58;1em;font-family&#58;sans-serif&#125;.chzn-container-single .chzn-drop&#123;margin-top&#58;-1px;border-radius&#58;0 0 4px 4px;background-clip&#58;padding-box&#125;.chzn-container-single.chzn-container-single-nosearch .chzn-search&#123;position&#58;absolute;left&#58;-9999px&#125;.chzn-container .chzn-results&#123;position&#58;relative;overflow-x&#58;hidden;overflow-y&#58;auto;margin&#58;0 4px 4px 0;padding&#58;0 0 0 4px;max-height&#58;240px;-webkit-overflow-scrolling&#58;touch&#125;.chzn-container .chzn-results li&#123;display&#58;none;margin&#58;0;padding&#58;5px 6px;list-style&#58;none;line-height&#58;15px&#125;.chzn-container .chzn-results li.active-result&#123;display&#58;list-item;cursor&#58;pointer&#125;.chzn-container .chzn-results li.disabled-result&#123;display&#58;list-item;color&#58;#ccc;cursor&#58;default&#125;.chzn-container .chzn-results li.highlighted&#123;background-color&#58;#3875d7;background-image&#58;-webkit-gradient&#40;linear,50% 0,50% 100%,color-stop&#40;20%,#3875d7&#41;,color-stop&#40;90%,#2a62bc&#41;&#41;;background-image&#58;-webkit-linear-gradient&#40;#3875d7 20%,#2a62bc 90%&#41;;background-image&#58;-moz-linear-gradient&#40;#3875d7 20%,#2a62bc 90%&#41;;background-image&#58;-o-linear-gradient&#40;#3875d7 20%,#2a62bc 90%&#41;;background-image&#58;linear-gradient&#40;#3875d7 20%,#2a62bc 90%&#41;;color&#58;#fff&#125;.chzn-container .chzn-results li.no-results&#123;display&#58;list-item;background&#58;#f4f4f4&#125;.chzn-container .chzn-results li.group-result&#123;display&#58;list-item;color&#58;#999;font-weight&#58;700;cursor&#58;default&#125;.chzn-container .chzn-results li.group-option&#123;padding-left&#58;15px&#125;.chzn-container .chzn-results li em&#123;font-style&#58;normal;text-decoration&#58;underline&#125;.chzn-container-multi .chzn-choices&#123;position&#58;relative;overflow&#58;hidden;-webkit-box-sizing&#58;border-box;-moz-box-sizing&#58;border-box;box-sizing&#58;border-box;margin&#58;0;padding&#58;0;width&#58;100%;height&#58;auto!important;height&#58;1%;border&#58;1px solid #aaa;background-color&#58;#fff;background-image&#58;-webkit-gradient&#40;linear,50% 0,50% 100%,color-stop&#40;1%,#eee&#41;,color-stop&#40;15%,#fff&#41;&#41;;background-image&#58;-webkit-linear-gradient&#40;#eee 1%,#fff 15%&#41;;background-image&#58;-moz-linear-gradient&#40;#eee 1%,#fff 15%&#41;;background-image&#58;-o-linear-gradient&#40;#eee 1%,#fff 15%&#41;;background-image&#58;linear-gradient&#40;#eee 1%,#fff 15%&#41;;cursor&#58;text&#125;.chzn-container-multi .chzn-choices li&#123;float&#58;left;list-style&#58;none&#125;.chzn-container-multi .chzn-choices li.search-field&#123;margin&#58;0;padding&#58;0;white-space&#58;nowrap&#125;.chzn-container-multi .chzn-choices li.search-field input&#123;margin&#58;1px 0;padding&#58;5px;height&#58;15px;outline&#58;0;border&#58;0!important;background&#58;transparent!important;box-shadow&#58;none;color&#58;#666;font-size&#58;100%;font-family&#58;sans-serif&#125;.chzn-container-multi .chzn-choices li.search-field .default&#123;color&#58;#999&#125;.chzn-container-multi .chzn-choices li.search-choice&#123;position&#58;relative;margin&#58;3px 0 3px 5px;padding&#58;3px 20px 3px 5px;border&#58;1px solid #aaa;border-radius&#58;3px;background-color&#58;#e4e4e4;background-image&#58;-webkit-gradient&#40;linear,50% 0,50% 100%,color-stop&#40;20%,#f4f4f4&#41;,color-stop&#40;50%,#f0f0f0&#41;,color-stop&#40;52%,#e8e8e8&#41;,color-stop&#40;100%,#eee&#41;&#41;;background-image&#58;-webkit-linear-gradient&#40;#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%&#41;;background-image&#58;-moz-linear-gradient&#40;#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%&#41;;background-image&#58;-o-linear-gradient&#40;#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%&#41;;background-image&#58;linear-gradient&#40;#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%&#41;;background-clip&#58;padding-box;box-shadow&#58;0 0 2px #fff inset,0 1px 0 rgba&#40;0,0,0,.05&#41;;color&#58;#333;line-height&#58;13px;cursor&#58;default&#125;.chzn-container-multi .chzn-choices li.search-choice .search-choice-close&#123;position&#58;absolute;top&#58;4px;right&#58;3px;display&#58;block;width&#58;12px;height&#58;12px;background&#58;url&#40;chosen-sprite.png&#41; -42px 1px no-repeat;font-size&#58;1px&#125;.chzn-container-multi .chzn-choices li.search-choice .search-choice-close&#58;hover&#123;background-position&#58;-42px -10px&#125;.chzn-container-multi .chzn-choices li.search-choice-disabled&#123;padding-right&#58;5px;border&#58;1px solid #ccc;background-color&#58;#e4e4e4;background-image&#58;-webkit-gradient&#40;linear,50% 0,50% 100%,color-stop&#40;20%,#f4f4f4&#41;,color-stop&#40;50%,#f0f0f0&#41;,color-stop&#40;52%,#e8e8e8&#41;,color-stop&#40;100%,#eee&#41;&#41;;background-image&#58;-webkit-linear-gradient&#40;top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%&#41;;background-image&#58;-moz-linear-gradient&#40;top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%&#41;;background-image&#58;-o-linear-gradient&#40;top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%&#41;;background-image&#58;linear-gradient&#40;top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%&#41;;color&#58;#666&#125;.chzn-container-multi .chzn-choices li.search-choice-focus&#123;background&#58;#d4d4d4&#125;.chzn-container-multi .chzn-choices li.search-choice-focus .search-choice-close&#123;background-position&#58;-42px -10px&#125;.chzn-container-multi .chzn-results&#123;margin&#58;0;padding&#58;0&#125;.chzn-container-multi .chzn-drop .result-selected&#123;display&#58;list-item;color&#58;#ccc;cursor&#58;default&#125;.chzn-container-active .chzn-single&#123;border&#58;1px solid #5897fb;box-shadow&#58;0 0 5px rgba&#40;0,0,0,.3&#41;&#125;.chzn-container-active.chzn-with-drop .chzn-single&#123;border&#58;1px solid #aaa;-moz-border-radius-bottomright&#58;0;border-bottom-right-radius&#58;0;-moz-border-radius-bottomleft&#58;0;border-bottom-left-radius&#58;0;background-image&#58;-webkit-gradient&#40;linear,50% 0,50% 100%,color-stop&#40;20%,#eee&#41;,color-stop&#40;80%,#fff&#41;&#41;;background-image&#58;-webkit-linear-gradient&#40;#eee 20%,#fff 80%&#41;;background-image&#58;-moz-linear-gradient&#40;#eee 20%,#fff 80%&#41;;background-image&#58;-o-linear-gradient&#40;#eee 20%,#fff 80%&#41;;background-image&#58;linear-gradient&#40;#eee 20%,#fff 80%&#41;;box-shadow&#58;0 1px 0 #fff inset&#125;.chzn-container-active.chzn-with-drop .chzn-single div&#123;border-left&#58;0;background&#58;transparent&#125;.chzn-container-active.chzn-with-drop .chzn-single div b&#123;background-position&#58;-18px 2px&#125;.chzn-container-active .chzn-choices&#123;border&#58;1px solid #5897fb;box-shadow&#58;0 0 5px rgba&#40;0,0,0,.3&#41;&#125;.chzn-container-active .chzn-choices li.search-field input&#123;color&#58;#111!important&#125;.chzn-disabled&#123;opacity&#58;.5!important;cursor&#58;default&#125;.chzn-disabled .chzn-single&#123;cursor&#58;default&#125;.chzn-disabled .chzn-choices .search-choice .search-choice-close&#123;cursor&#58;default&#125;.chzn-rtl&#123;text-align&#58;right&#125;.chzn-rtl .chzn-single&#123;overflow&#58;visible;padding&#58;0 8px 0 0&#125;.chzn-rtl .chzn-single span&#123;margin-right&#58;0;margin-left&#58;26px;direction&#58;rtl&#125;.chzn-rtl .chzn-single-with-deselect span&#123;margin-left&#58;38px&#125;.chzn-rtl .chzn-single div&#123;right&#58;auto;left&#58;3px&#125;.chzn-rtl .chzn-single abbr&#123;right&#58;auto;left&#58;26px&#125;.chzn-rtl .chzn-choices li&#123;float&#58;right&#125;.chzn-rtl .chzn-choices li.search-field input&#123;direction&#58;rtl&#125;.chzn-rtl .chzn-choices li.search-choice&#123;margin&#58;3px 5px 3px 0;padding&#58;3px 5px 3px 19px&#125;.chzn-rtl .chzn-choices li.search-choice .search-choice-close&#123;right&#58;auto;left&#58;4px&#125;.chzn-rtl.chzn-container-single-nosearch .chzn-search,.chzn-rtl .chzn-drop&#123;left&#58;9999px&#125;.chzn-rtl.chzn-container-single .chzn-results&#123;margin&#58;0 0 4px 4px;padding&#58;0 4px 0 0&#125;.chzn-rtl .chzn-results li.group-option&#123;padding-right&#58;15px;padding-left&#58;0&#125;.chzn-rtl.chzn-container-active.chzn-with-drop .chzn-single div&#123;border-right&#58;0&#125;.chzn-rtl .chzn-search input&#123;padding&#58;4px 5px 4px 20px;background&#58;#fff url&#40;chosen-sprite.png&#41; no-repeat -30px -20px;background&#58;url&#40;chosen-sprite.png&#41; no-repeat -30px -20px,-webkit-gradient&#40;linear,50% 0,50% 100%,color-stop&#40;1%,#eee&#41;,color-stop&#40;15%,#fff&#41;&#41;;background&#58;url&#40;chosen-sprite.png&#41; no-repeat -30px -20px,-webkit-linear-gradient&#40;#eee 1%,#fff 15%&#41;;background&#58;url&#40;chosen-sprite.png&#41; no-repeat -30px -20px,-moz-linear-gradient&#40;#eee 1%,#fff 15%&#41;;background&#58;url&#40;chosen-sprite.png&#41; no-repeat -30px -20px,-o-linear-gradient&#40;#eee 1%,#fff 15%&#41;;background&#58;url&#40;chosen-sprite.png&#41; no-repeat -30px -20px,linear-gradient&#40;#eee 1%,#fff 15%&#41;;direction&#58;rtl&#125;.chzn-rtl.chzn-container-single .chzn-single div b&#123;background-position&#58;6px 2px&#125;.chzn-rtl.chzn-container-single.chzn-with-drop .chzn-single div b&#123;background-position&#58;-12px 2px&#125;@media only screen and &#40;-webkit-min-device-pixel-ratio&#58;2&#41;,only screen and &#40;min-resolution&#58;144dpi&#41;&#123;.chzn-rtl .chzn-search input,.chzn-container-single .chzn-single abbr,.chzn-container-single .chzn-single div b,.chzn-container-single .chzn-search input,.chzn-container-multi .chzn-choices .search-choice .search-choice-close,.chzn-container .chzn-results-scroll-down span,.chzn-container .chzn-results-scroll-up span&#123;background-image&#58;url&#40;chosen-sprite@2x.png&#41;!important;background-size&#58;52px 37px!important;background-repeat&#58;no-repeat!important&#125;&#125;

uphero
Потребител
Потребител
Posts: 787
Joined: Mon Feb 20, 2012 12:26 pm
Answers: 34
Location: Казанлък
Contact:

Post by uphero » Wed Feb 03, 2016 1:24 pm

Ползвай пастебин за такива големи кодове и дай онлайн демо да видим.

martinski
Нов
Нов
Posts: 26
Joined: Wed Dec 23, 2015 10:03 pm

Post by martinski » Wed Feb 03, 2016 1:32 pm

благодаря.
това е JS - http://pastebin.com/CS0xfdt9
ТОВА Е css - http://pastebin.com/c6YSe9zu
В HEADER-A на сайта зареждам

Code: Select all

<link rel="stylesheet" media="screen" href="themes/vendors/chosen.min.css"> 
        <script type="text/javascript" src="themes/vendors/selectize/dist/js/standalone/selectize.min.js"></script>	
а в самият сайт извеждам

Code: Select all

                                                    <select id="select01" class="chzn-select" style="width&#58; 150px"> 
въпроса ми е как да махна JS и да запазя само дизайна при положение, че когато бутна нещо в JS не се използва дизайна от css ?

martinski
Нов
Нов
Posts: 26
Joined: Wed Dec 23, 2015 10:03 pm

Post by martinski » Wed Feb 03, 2016 1:59 pm

а ти как така от един ред го подреди и сортира ?
и наистина трябва само сърча да се махне от JS защото js прави и друго освен него

uphero
Потребител
Потребител
Posts: 787
Joined: Mon Feb 20, 2012 12:26 pm
Answers: 34
Location: Казанлък
Contact:

Post by uphero » Wed Feb 03, 2016 2:09 pm

martinski wrote:а ти как така от един ред го подреди и сортира ?
и наистина трябва само сърча да се махне от JS защото js прави и друго освен него
http://unminify.com/

Пп аз лично нищо не разбрах. Кой сърч, кое точно ползваш.
Изобщо опиши си по-добре примера. Защото тук са показани няколко начина на ползване и без да знаем кой от тях ползва няма как да ти помогнем.
http://harvesthq.github.io/chosen/

martinski
Нов
Нов
Posts: 26
Joined: Wed Dec 23, 2015 10:03 pm

Post by martinski » Wed Feb 03, 2016 2:15 pm

благодаря.
това е JS на bootstrap
JS прави така, че когато използвам
<select id="select01" class="chzn-select" style="width: 150px">

освен изброените от мен value над тях се показва сърч, който търси дали има такова value.

искам да се запазят само value и да не се показва над тях сърча

novakabg
Турист
Турист
Posts: 337
Joined: Fri May 13, 2016 12:29 pm
Contact:

Post by novakabg » Fri Aug 19, 2016 3:01 pm

В кода си има код за спиране мисля :)

this.disable_search

Ето още няколко метода:

Code: Select all

$&#40;'.chzn-search'&#41;.hide&#40;&#41;;

$&#40;"#MoqtIDCLASS"&#41;.chosen&#40;&#123;
  "disable_search_threshold"&#58; 4
&#125;&#41;;

$&#40;"#MoqtIDCLASS"&#41;.chosen&#40;&#123;
  "disable_search"&#58; true
&#125;&#41;;

Post Reply