diff --git a/components/accordion.css b/components/accordion.css index dc4e74a2..5c2b0446 100755 --- a/components/accordion.css +++ b/components/accordion.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Accordion + * # Semantic UI 1.12.3 - Accordion * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/accordion.js b/components/accordion.js index 934ea34b..eaccf97c 100755 --- a/components/accordion.js +++ b/components/accordion.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Accordion + * # Semantic UI 1.12.3 - Accordion * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/accordion.min.css b/components/accordion.min.css index b5e6a7e5..67cbf350 100755 --- a/components/accordion.min.css +++ b/components/accordion.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Accordion + * # Semantic UI 1.12.3 - Accordion * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/accordion.min.js b/components/accordion.min.js index 80277ca4..2cb43ae7 100755 --- a/components/accordion.min.js +++ b/components/accordion.min.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Accordion + * # Semantic UI 1.12.3 - Accordion * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/ad.css b/components/ad.css index 5b6c005b..c51da7ab 100755 --- a/components/ad.css +++ b/components/ad.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Ad + * # Semantic UI 1.12.3 - Ad * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/ad.min.css b/components/ad.min.css index 69b34453..68fb8a0b 100755 --- a/components/ad.min.css +++ b/components/ad.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Ad + * # Semantic UI 1.12.3 - Ad * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/api.js b/components/api.js index e4d0c793..708954d6 100755 --- a/components/api.js +++ b/components/api.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - API + * # Semantic UI 1.12.3 - API * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/api.min.js b/components/api.min.js index c17a6a75..f6d6d1bc 100755 --- a/components/api.min.js +++ b/components/api.min.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - API + * # Semantic UI 1.12.3 - API * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/breadcrumb.css b/components/breadcrumb.css index 4b71b409..c0cc3c46 100755 --- a/components/breadcrumb.css +++ b/components/breadcrumb.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Breadcrumb + * # Semantic UI 1.12.3 - Breadcrumb * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/breadcrumb.min.css b/components/breadcrumb.min.css index 26f4ca69..f1a35813 100755 --- a/components/breadcrumb.min.css +++ b/components/breadcrumb.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Breadcrumb + * # Semantic UI 1.12.3 - Breadcrumb * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/button.css b/components/button.css index 0322eb9f..ed7ad1dd 100755 --- a/components/button.css +++ b/components/button.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Button + * # Semantic UI 1.12.3 - Button * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/button.min.css b/components/button.min.css index 2821d205..e11d0a08 100755 --- a/components/button.min.css +++ b/components/button.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Button + * # Semantic UI 1.12.3 - Button * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/card.css b/components/card.css index daf54618..ec181091 100755 --- a/components/card.css +++ b/components/card.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Item + * # Semantic UI 1.12.3 - Item * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/card.min.css b/components/card.min.css index 00d15999..221f95ca 100755 --- a/components/card.min.css +++ b/components/card.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Item + * # Semantic UI 1.12.3 - Item * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/checkbox.css b/components/checkbox.css index e6061b87..8ae23a77 100755 --- a/components/checkbox.css +++ b/components/checkbox.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Checkbox + * # Semantic UI 1.12.3 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/checkbox.js b/components/checkbox.js index 192f3241..0791589d 100755 --- a/components/checkbox.js +++ b/components/checkbox.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Checkbox + * # Semantic UI 1.12.3 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * @@ -93,9 +93,9 @@ $.fn.checkbox = function(parameters) { }, refresh: function() { - $module = $(this); - $label = $(this).find(selector.label).first(); - $input = $(this).find(selector.input); + $module = $(element); + $label = $(element).find(selector.label).first(); + $input = $(element).find(selector.input); }, observeChanges: function() { diff --git a/components/checkbox.min.css b/components/checkbox.min.css index 31a9ea94..d5516aae 100755 --- a/components/checkbox.min.css +++ b/components/checkbox.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Checkbox + * # Semantic UI 1.12.3 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * diff --git a/components/checkbox.min.js b/components/checkbox.min.js index cf46c185..fae2ca9f 100755 --- a/components/checkbox.min.js +++ b/components/checkbox.min.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.12.2 - Checkbox + * # Semantic UI 1.12.3 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * @@ -8,4 +8,4 @@ * http://opensource.org/licenses/MIT * */ -!function(e,n,t,o){"use strict";e.fn.checkbox=function(t){var c,i=e(this),r=i.selector||"",a=(new Date).getTime(),l=[],s=arguments[0],u="string"==typeof s,d=[].slice.call(arguments,1);return i.each(function(){var i,b,g=e.extend(!0,{},e.fn.checkbox.settings,t),h=g.className,f=g.namespace,p=g.selector,m=g.error,k="."+f,v="module-"+f,y=e(this),x=e(this).find(p.label).first(),C=e(this).find(p.input),D=y.data(v),E=this;b={initialize:function(){b.verbose("Initializing checkbox",g),b.create.label(),b.add.events(),b.is.checked()?(b.set.checked(),g.fireOnInit&&g.onChecked.call(C.get())):(b.remove.checked(),g.fireOnInit&&g.onUnchecked.call(C.get())),b.observeChanges(),b.instantiate()},instantiate:function(){b.verbose("Storing instance of module",b),D=b,y.data(v,b)},destroy:function(){b.verbose("Destroying module"),b.remove.events(),y.removeData(v)},refresh:function(){y=e(this),x=e(this).find(p.label).first(),C=e(this).find(p.input)},observeChanges:function(){"MutationObserver"in n&&(i=new MutationObserver(function(e){b.debug("DOM tree modified, updating selector cache"),b.refresh()}),i.observe(E,{childList:!0,subtree:!0}),b.debug("Setting up mutation observer",i))},attachEvents:function(n,t){var o=e(n);t=e.isFunction(b[t])?b[t]:b.toggle,o.length>0?(b.debug("Attaching checkbox events to element",n,t),o.on("click"+k,t)):b.error(m.notFound)},event:{keydown:function(e){var n=e.which,t={enter:13,space:32,escape:27};n==t.escape&&(b.verbose("Escape key pressed blurring field"),y.blur()),e.ctrlKey||n!=t.enter&&n!=t.space||(b.verbose("Enter key pressed, toggling checkbox"),b.toggle.call(this),e.preventDefault())}},is:{radio:function(){return y.hasClass(h.radio)},checked:function(){return C.prop("checked")!==o&&C.prop("checked")},unchecked:function(){return!b.is.checked()}},can:{change:function(){return!(y.hasClass(h.disabled)||y.hasClass(h.readOnly)||C.prop("disabled"))},uncheck:function(){return"boolean"==typeof g.uncheckable?g.uncheckable:!b.is.radio()}},set:{checked:function(){y.addClass(h.checked)},tab:function(){C.attr("tabindex")===o&&C.attr("tabindex",0)}},create:{label:function(){C.prevAll(p.label).length>0?(C.prev(p.label).detach().insertAfter(C),b.debug("Moving existing label",x)):b.has.label()||(x=e("