summaryrefslogtreecommitdiff
path: root/htroot/jquery/js
diff options
context:
space:
mode:
authorapfelmaennchen <apfelmaennchen@6c8d7289-2bf4-0310-a012-ef5d649a1542>2011-11-20 22:42:15 +0000
committerapfelmaennchen <apfelmaennchen@6c8d7289-2bf4-0310-a012-ef5d649a1542>2011-11-20 22:42:15 +0000
commit6287c2b4a9663b18bf93ea6fe5c342cae160c5ef (patch)
tree0df4c43d0fd70be42f3269236028c16afad97abc /htroot/jquery/js
parent2236e0113787320b480603641c34d3c3f65c423c (diff)
YMarks:
- introduced tag manager - a quite powerful tool (still not 100% stable, so be careful) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8060 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/jquery/js')
-rw-r--r--htroot/jquery/js/jquery.multiselect.filter.min.js15
-rw-r--r--htroot/jquery/js/jquery.multiselect.min.js2
2 files changed, 16 insertions, 1 deletions
diff --git a/htroot/jquery/js/jquery.multiselect.filter.min.js b/htroot/jquery/js/jquery.multiselect.filter.min.js
new file mode 100644
index 000000000..cd748aebc
--- /dev/null
+++ b/htroot/jquery/js/jquery.multiselect.filter.min.js
@@ -0,0 +1,15 @@
+/*
+ * jQuery MultiSelect UI Widget Filtering Plugin 1.3
+ * Copyright (c) 2011 Eric Hynds
+ *
+ * http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/
+ *
+ * Depends:
+ * - jQuery UI MultiSelect widget
+ *
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ *
+*/
+(function(c){var f=/[\-\[\]{}()*+?.,\\^$|#\s]/g;c.widget("ech.multiselectfilter",{options:{label:"Filter:",width:null,placeholder:"Enter keywords"},_create:function(){var e;var a=this,b=this.options,d=this.instance=c(this.element).data("multiselect");this.header=d.menu.find(".ui-multiselect-header").addClass("ui-multiselect-hasfilter");e=this.wrapper=c('<div class="ui-multiselect-filter">'+(b.label.length?b.label:"")+'<input placeholder="'+b.placeholder+'" type="search"'+(/\d/.test(b.width)?'style="width:'+ b.width+'px"':"")+" /></div>").prependTo(this.header),b=e;this.inputs=d.menu.find('input[type="checkbox"], input[type="radio"]');this.input=b.find("input").bind({keydown:function(a){a.which===13&&a.preventDefault()},keyup:c.proxy(a._handler,a),click:c.proxy(a._handler,a)});this.updateCache();d._toggleChecked=function(b,d){var e=d&&d.length?d:this.labels.find("input"),i=this,e=e.not(a.instance._isOpen?":disabled, :hidden":":disabled").each(this._toggleCheckbox("checked",b));this.update();var j=e.map(function(){return this.value}).get(); this.element.find("option").filter(function(){!this.disabled&&c.inArray(this.value,j)>-1&&i._toggleCheckbox("selected",b).call(this)})};c(document).bind("multiselectrefresh",function(){a.updateCache();a._handler()})},_handler:function(a){var b=c.trim(this.input[0].value.toLowerCase()),d=this.rows,g=this.inputs,h=this.cache;if(b){d.hide();var e=RegExp(b.replace(f,"\\$&"),"gi");this._trigger("filter",a,c.map(h,function(a,b){return a.search(e)!==-1?(d.eq(b).show(),g.get(b)):null}))}else d.show();this.instance.menu.find(".ui-multiselect-optgroup-label").each(function(){var a= c(this);a[a.nextUntil(".ui-multiselect-optgroup-label").filter(":visible").length?"show":"hide"]()})},updateCache:function(){this.rows=this.instance.menu.find(".ui-multiselect-checkboxes li:not(.ui-multiselect-optgroup-label)");this.cache=this.element.children().map(function(){var a=c(this);this.tagName.toLowerCase()==="optgroup"&&(a=a.children());return a.map(function(){return this.innerHTML.toLowerCase()}).get()}).get()},widget:function(){return this.wrapper},destroy:function(){c.Widget.prototype.destroy.call(this); this.input.val("").trigger("keyup");this.wrapper.remove()}})})(jQuery);
diff --git a/htroot/jquery/js/jquery.multiselect.min.js b/htroot/jquery/js/jquery.multiselect.min.js
index aa7c62743..0f21c8d39 100644
--- a/htroot/jquery/js/jquery.multiselect.min.js
+++ b/htroot/jquery/js/jquery.multiselect.min.js
@@ -1,5 +1,5 @@
/*
- * jQuery MultiSelect UI Widget 1.11
+ * jQuery MultiSelect UI Widget 1.12pre
* Copyright (c) 2011 Eric Hynds
*
* http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/