Skip to content

Commit

Permalink
Adding "button" type to button in selection to prevent default "submi…
Browse files Browse the repository at this point in the history
…t" type
  • Loading branch information
healqq authored and tapmodo committed Oct 27, 2015
1 parent 0a6bf14 commit 75c13ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions js/Jcrop.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Jcrop.js v2.0.2 - build: 20150831
/*! Jcrop.js v2.0.2 - build: 20151027
* @copyright 2008-2015 Tapmodo Interactive LLC
* @license Free software under MIT License
* @website http://jcrop.org/
Expand Down Expand Up @@ -1295,7 +1295,7 @@ Jcrop.registerStageType('Canvas',CanvasStage);
t.filter = t.core.getDefaultFilters();

t.element = $('<div />').addClass(o.css_selection).data({ selection: t });
t.frame = $('<button />').addClass(o.css_button).data('ord','move');
t.frame = $('<button />').addClass(o.css_button).data('ord','move').attr('type','button');
t.element.append(t.frame).appendTo(t.core.container);

// IE background/draggable hack
Expand Down
Loading

0 comments on commit 75c13ff

Please sign in to comment.