Skip to content

Commit

Permalink
make dialog.modal not close if no callback given
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jun 1, 2015
1 parent 3652d23 commit 46c1b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/hft/0.x.x/scripts/misc/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ define([], function() {
addObjectChoice(choice, ndx);
}
});
} else {
} else if (callback) {
container.addEventListener('click', closeIt, false);
container.addEventListener('touchend', closeIt, false);
}
Expand Down

0 comments on commit 46c1b3e

Please sign in to comment.