Skip to content

Commit

Permalink
Merge pull request msurguy#17 from yhbyun/hotfixes/branch
Browse files Browse the repository at this point in the history
Upgrade spin.js to verion 2.0.1 and add support for it
  • Loading branch information
msurguy committed Jun 30, 2014
2 parents 9790e6e + 5941025 commit 0f71342
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 48 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"dependencies": {
"bootstrap": ">=3.0.0",
"spin.js": "~1.3.2"
"spin.js": "~2.0.1"
},
"readme": "README.md",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion dist/ladda-themeless.css
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
.ladda-button[data-style=contract-overlay] {
overflow: hidden;
width: 100px;
box-shadow: 0px 0px 0px 3000px rgba(0, 0, 0, 0); }
box-shadow: 0px 0px 0px 3000px transparent; }

.ladda-button[data-style=contract-overlay] .ladda-spinner {
left: 50%;
Expand Down
2 changes: 1 addition & 1 deletion dist/ladda-themeless.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/ladda.css
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
.ladda-button[data-style=contract-overlay] {
overflow: hidden;
width: 100px;
box-shadow: 0px 0px 0px 3000px rgba(0, 0, 0, 0); }
box-shadow: 0px 0px 0px 3000px transparent; }

.ladda-button[data-style=contract-overlay] .ladda-spinner {
left: 50%;
Expand Down Expand Up @@ -347,7 +347,7 @@
border: 1px solid transparent;
-webkit-appearance: none;
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
-webkit-tap-highlight-color: transparent; }
.ladda-button:hover {
border-color: rgba(0, 0, 0, 0.07);
background-color: #888; }
Expand Down
9 changes: 6 additions & 3 deletions dist/ladda.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if (typeof exports === "object") {
module.exports = factory();
} else if (typeof define === "function" && define.amd) {
define([ "spin" ], factory);
define([ "./spin" ], factory);
} else {
root.Ladda = factory(root.Spinner);
}
Expand Down Expand Up @@ -80,6 +80,9 @@
},
isLoading: function() {
return button.hasAttribute("data-loading");
},
getTarget: function() {
return button;
}
};
ALL_INSTANCES.push(instance);
Expand Down Expand Up @@ -137,8 +140,8 @@
length: length,
width: width,
zIndex: "auto",
top: "auto",
left: "auto",
top: "50%",
left: "50%",
className: ""
});
}
Expand Down
Loading

0 comments on commit 0f71342

Please sign in to comment.