Permalink
Browse files

Prevent Form Submit from Button

Adds type attribute to the slider button. This prevents the default type of button from assigning to submit, which would submit a form that the slider was inside.

Version bump.
  • Loading branch information...
1 parent 2437bb5 commit e8d9d229ac488895657b7cd4df49e45b5de8e725 Jamie Hoover ⚔ committed Oct 5, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 library/ninja-slider.js
  2. +1 −1 package.json
View
@@ -70,7 +70,7 @@
});
slider.$button = $('<button>', {
- 'class': 'ninja-button',
+ type: 'button',
css: {
left: slider.left()
}
View
@@ -1,6 +1,6 @@
{
"name": "ninja-slider",
- "version": "1.1.26",
+ "version": "1.1.27",
"description": "Ninja Slider",
"homepage": "http://ninjaui.com/slider",
"repository": {

0 comments on commit e8d9d22

Please sign in to comment.