diff --git a/bower.json b/bower.json index 039d9e7..e2e37f9 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-switcher", - "version": "0.2.7", + "version": "0.2.8", "authors": [ "Indri Muska " ], diff --git a/dist/angular-switcher.css b/dist/angular-switcher.css index cf631a2..2a622a3 100644 --- a/dist/angular-switcher.css +++ b/dist/angular-switcher.css @@ -13,7 +13,7 @@ left: 0; } .switcher input { display: none !important; } -.switcher.active .switcher-line:after { left: 100%; -webkit-transform: translate(-100%, -50%); -ms-transform: translate(-100%, -50%); transform: translate(-100%, -50%); } +.switcher.active .switcher-line:after { left: 100%; -webkit-transform: translate(-100%, -50%); -ms-transform: translate(-100%, -50%); transform: translate(-100%, -50%); } .switcher.active .switcher-label.true { color: #4ecb32; } .switcher.active .switcher-label.false { color: inherit; } diff --git a/dist/angular-switcher.min.js b/dist/angular-switcher.min.js index 3808fda..01a9c64 100644 --- a/dist/angular-switcher.min.js +++ b/dist/angular-switcher.min.js @@ -1,2 +1,2 @@ -/*! angular-switcher - v0.2.7 - https://github.com/indrimuska/angular-switcher - (c) 2015 Indri Muska - MIT */ +/*! angular-switcher - v0.2.8 - https://github.com/indrimuska/angular-switcher - (c) 2015 Indri Muska - MIT */ !function(a){var b=function(){function b(a){this.restrict="E",this.require="ngModel",this.scope={model:"=ngModel",disabled:"=?ngDisabled",trueValue:"=?",trueLabel:"@?",falseValue:"=?",falseLabel:"@?",change:"&?ngChange"},this.template='
',$sce=a}return b.prototype.$inject=["$sce"],b.prototype.link=function(b,c,d,e){var f={trueValue:!0,falseValue:!1,disabled:!1},g={trueLabel:"On",falseLabel:"Off"};a.forEach(f,function(c,d){a.isDefined(b[d])||(b[d]=c)}),a.forEach(g,function(c,e){a.isDefined(b[e])||(d[e]=c)}),b.trustedHtml=function(a){return $sce.trustAsHtml(a)},b.set=function(c){b.disabled||c==b.shadowModel||(a.isFunction(b.change)&&b.change({newValue:c,oldValue:b.shadowModel}),b.shadowModel=c)},b.onChange=function(){var c=b.model,d=b.shadowModel?b.trueValue:b.falseValue;b.model=d,a.isFunction(b.change)&&b.change({newValue:d,oldValue:c})},b.$watch("model",function(){b.shadowModel=b.model==b.trueValue}),b.$watch("shadowModel",function(){b.model=b[b.shadowModel+"Value"]})},b}();a.module("switcher",[]).directive("switcher",["$sce",function(a){return new b(a)}])}(window.angular); \ No newline at end of file diff --git a/package.json b/package.json index 5aeeaea..ffaa301 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-switcher", - "version": "0.2.7", + "version": "0.2.8", "description": "Angular Switcher is an AngularJS directive that models toggle switches.", "main": "Gruntfile.js", "repository": { @@ -9,7 +9,7 @@ }, "keywords": [ "switcher", - "switches", + "switches", "toggle", "checkbox", "angular" diff --git a/src/angular-switcher.css b/src/angular-switcher.css index cf631a2..2a622a3 100644 --- a/src/angular-switcher.css +++ b/src/angular-switcher.css @@ -13,7 +13,7 @@ left: 0; } .switcher input { display: none !important; } -.switcher.active .switcher-line:after { left: 100%; -webkit-transform: translate(-100%, -50%); -ms-transform: translate(-100%, -50%); transform: translate(-100%, -50%); } +.switcher.active .switcher-line:after { left: 100%; -webkit-transform: translate(-100%, -50%); -ms-transform: translate(-100%, -50%); transform: translate(-100%, -50%); } .switcher.active .switcher-label.true { color: #4ecb32; } .switcher.active .switcher-label.false { color: inherit; }