Added: 
ofbiz/branches/ofbiz-new-website/js-plugin/bootstrap-select/bootstrap-select.min.js
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/ofbiz-new-website/js-plugin/bootstrap-select/bootstrap-select.min.js?rev=1787742&view=auto
==============================================================================
--- 
ofbiz/branches/ofbiz-new-website/js-plugin/bootstrap-select/bootstrap-select.min.js
 (added)
+++ 
ofbiz/branches/ofbiz-new-website/js-plugin/bootstrap-select/bootstrap-select.min.js
 Mon Mar 20 12:28:40 2017
@@ -0,0 +1 @@
+!function(b){var 
a=function(d,c,f){if(f){f.stopPropagation();f.preventDefault()}this.$element=b(d);this.$newElement=null;this.button=null;this.options=b.extend({},b.fn.selectpicker.defaults,this.$element.data(),typeof
 
c=="object"&&c);this.style=this.options.style;this.size=this.options.size;this.init()};a.prototype={constructor:a,init:function(n){this.$element.hide();var
 
f=this.$element.attr("class")!==undefined?this.$element.attr("class").split(/\s+/):"";var
 q=this.getTemplate();var 
d=this.$element.attr("id");q=this.createLi(q);this.$element.after(q);this.$newElement=this.$element.next(".bootstrap-select");var
 p=this.$newElement;var g=this.$newElement.find(".dropdown-menu");var 
m=this.$newElement.find(".dropdown-menu li > a");var 
o=parseInt(m.css("line-height"))+m.outerHeight();var 
j=this.$newElement.offset().top;var s=0;var h=0;var 
l=this.$newElement.outerHeight();this.button=this.$newElement.find("> 
button");if(d!==undefined){this.button.attr("id",d);b('label[for="'+d+'"]').click
 (function(){p.find("button#"+d).focus()})}for(var 
k=0;k<f.length;k++){if(f[k]!="selectpicker"){this.$newElement.addClass(f[k])}}this.button.addClass(this.style);this.checkDisabled();this.checkTabIndex();this.clickListener();var
 
c=parseInt(g.css("padding-top"))+parseInt(g.css("padding-bottom"))+parseInt(g.css("border-top-width"))+parseInt(g.css("border-bottom-width"));if(this.size=="auto"){function
 r(){var e=j-b(window).scrollTop();var u=window.innerHeight;var 
i=c+parseInt(g.css("margin-top"))+parseInt(g.css("margin-bottom"))+2;var 
t=u-e-l-i;if(!p.hasClass("dropup")){s=Math.floor(t/o)}else{s=Math.floor((e-i)/o)}if(s<4){s=3}h=o*s+c;if(g.find("li").length+g.find("dt").length>s){g.css({"max-height":h+"px","overflow-y":"scroll"})}else{g.css({"max-height":"none","overflow-y":"auto"})}}r();b(window).resize(r);b(window).scroll(r);this.$element.bind("DOMNodeInserted",r)}else{if(this.size&&this.size!="auto"&&g.find("li").length>this.size){h=o*this.size+c;if(this.size==1){h=h+8}g.css({"max-hei
 
ght":h+"px","overflow-y":"scroll"})}}this.$element.bind("DOMNodeInserted",b.proxy(this.reloadLi,this))},getTemplate:function(){var
 c="<div class='btn-group bootstrap-select'><button class='btn dropdown-toggle 
clearfix' data-toggle='dropdown'><span class='filter-option 
pull-left'>__SELECTED_OPTION</span>&nbsp;<span 
class='caret'></span></button><ul class='dropdown-menu' 
role='menu'>__ADD_LI</ul></div>";return c},reloadLi:function(){var f=[];var 
g=[];var 
c="";this.$newElement.find("li").remove();this.$element.find("option").each(function(){f.push(b(this).text())});this.$element.find("option").each(function(){var
 
h=b(this).attr("class")!==undefined?b(this).attr("class"):"";if(b(this).parent().is("optgroup")){if(b(this).index()==0){if(b(this)[0].index!=0){g.push('<dt
 class="optgroup-div">'+b(this).parent().attr("label")+'</dt><a tabindex="-1" 
class="opt 
'+h+'">'+b(this).text()+"</a>")}else{g.push("<dt>"+b(this).parent().attr("label")+'</dt><a
 tabindex="-1" class="opt '+h+'">'+b(this).te
 xt()+"</a>")}}else{g.push('<a tabindex="-1" class="opt 
'+h+'">'+b(this).text()+"</a>")}}else{g.push('<a tabindex="-1" 
class="'+h+'">'+b(this).text()+"</a>")}});if(f.length>0){for(var 
d=0;d<f.length;d++){var 
e=this.$element.find("option").eq(d).is(":disabled")?'class="disabled"':"";this.$newElement.find("ul").append("<li
 rel="+d+" "+e+">"+g[d]+"</li>")}}this.$newElement.find("li 
dt").on("click",function(h){h.stopPropagation();$select=b(this).parent().parents(".bootstrap-select");$select.find("button").focus()});this.$newElement.find("li.disabled
 
a").on("click",function(h){h.stopPropagation();$select=b(this).parent().parents(".bootstrap-select");$select.find("button").focus()})},createLi:function(g){var
 f=[];var k=[];var c="";var j=this;var 
h=this.$element[0].selectedIndex?this.$element[0].selectedIndex:0;this.$element.find("option").each(function(){f.push(b(this).text())});this.$element.find("option").each(function(){var
 i=b(this).attr("class")!==undefined?b(this).attr("class"):"";if
 
(b(this).parent().is("optgroup")){if(b(this).index()==0){if(b(this)[0].index!=0){k.push('<dt
 class="optgroup-div">'+b(this).parent().attr("label")+'</dt><a tabindex="-1" 
class="opt 
'+i+'">'+b(this).text()+"</a>")}else{k.push("<dt>"+b(this).parent().attr("label")+'</dt><a
 tabindex="-1" class="opt '+i+'">'+b(this).text()+"</a>")}}else{k.push('<a 
tabindex="-1" class="opt '+i+'">'+b(this).text()+"</a>")}}else{k.push('<a 
tabindex="-1" 
class="'+i+'">'+b(this).text()+"</a>")}});if(f.length>0){g=g.replace("__SELECTED_OPTION",f[h]);for(var
 d=0;d<f.length;d++){var 
e=this.$element.find("option").eq(d).is(":disabled")?'class="disabled"':"";c+="<li
 rel="+d+" 
"+e+">"+k[d]+"</li>"}}this.$element.find("option").eq(h).prop("selected",true);g=g.replace("__ADD_LI",c);return
 
g},checkDisabled:function(){if(this.$element.is(":disabled")){this.button.addClass("disabled");this.button.click(function(c){c.preventDefault()})}},checkTabIndex:function(){if(this.$element.is("[tabindex]")){var
 c=this.$element.att
 
r("tabindex");this.button.attr("tabindex",c)}},clickListener:function(){b("body").on("touchstart.dropdown",".dropdown-menu",function(c){c.stopPropagation()});this.$newElement.find("li
 
dt").on("click",function(c){c.stopPropagation();$select=b(this).parent().parents(".bootstrap-select");$select.find("button").focus()});this.$newElement.find("li.disabled
 
a").on("click",function(c){c.stopPropagation();$select=b(this).parent().parents(".bootstrap-select");$select.find("button").focus()});this.$newElement.on("click","li
 a",function(g){g.preventDefault();var 
d=b(this).parent().index(),f=b(this).parent(),c=f.parents(".bootstrap-select");if(c.prev("select").not(":disabled")){c.prev("select").find("option").removeAttr("selected");c.prev("select").find("option").eq(d).prop("selected",true).attr("selected","selected");c.find(".filter-option").html(f.text());c.find("button").focus();c.prev("select").trigger("change")}});this.$element.on("change",function(c){if(b(this).find("option:selected").att
 
r("title")!=undefined){b(this).next(".bootstrap-select").find(".filter-option").html(b(this).find("option:selected").attr("title"))}else{b(this).next(".bootstrap-select").find(".filter-option").html(b(this).find("option:selected").text())}})}};b.fn.selectpicker=function(c,d){return
 this.each(function(){var g=b(this),f=g.data("selectpicker"),e=typeof 
c=="object"&&c;if(!f){g.data("selectpicker",(f=new a(this,e,d)))}if(typeof 
c=="string"){f[c]()}})};b.fn.selectpicker.defaults={style:null,size:"auto"}}(window.jQuery);
\ No newline at end of file

Propchange: 
ofbiz/branches/ofbiz-new-website/js-plugin/bootstrap-select/bootstrap-select.min.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
ofbiz/branches/ofbiz-new-website/js-plugin/bootstrap-select/bootstrap-select.min.js
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: 
ofbiz/branches/ofbiz-new-website/js-plugin/bootstrap-select/bootstrap-select.min.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/ofbiz-new-website/js-plugin/bootstrap-select/package.json
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/ofbiz-new-website/js-plugin/bootstrap-select/package.json?rev=1787742&view=auto
==============================================================================
--- ofbiz/branches/ofbiz-new-website/js-plugin/bootstrap-select/package.json 
(added)
+++ ofbiz/branches/ofbiz-new-website/js-plugin/bootstrap-select/package.json 
Mon Mar 20 12:28:40 2017
@@ -0,0 +1,25 @@
+{
+  "name": "jquery",
+       "title": "jQuery",
+       "description": "JavaScript library for DOM operations",
+       "version": "2.0.0pre",
+       "homepage": "http://jquery.com";,
+       "author": {
+               "name": "Silvio Moreto",
+               "url": "https://github.com/silviomoreto/";
+       },
+       "repository": {
+               "type": "git",
+               "url": "git://github.com/antonellopasella/bootstrap-select.git"
+       },
+       "licenses": [
+               {
+                       "type": "Custom",
+                       "url": 
"https://github.com/silviomoreto/bootstrap-select/blob/master/README.md#copyright-and-license";
+               }
+       ],
+       "dependencies": {
+               "jquery": "1.8"
+       },
+       "keywords": []
+}


Reply via email to