Skip to content

Commit

Permalink
Merge pull request #151 from bigfox/bigfox-export-button-patch
Browse files Browse the repository at this point in the history
Fix export button default click event
  • Loading branch information
dabeng authored Feb 9, 2017
2 parents 5996575 + dddbace commit c9cd0cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/js/jquery.orgchart.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@
var $exportBtn = $('<button>', {
'class': 'oc-export-btn' + (opts.chartClass !== '' ? ' ' + opts.chartClass : ''),
'text': 'Export',
'click': function() {
'click': function(e) {
e.preventDefault();
if ($(this).children('.spinner').length) {
return false;
}
Expand Down

0 comments on commit c9cd0cb

Please sign in to comment.