Skip to content

Commit

Permalink
Return bindings to app.helpers.dialog and remove old bindings on each…
Browse files Browse the repository at this point in the history
… call
  • Loading branch information
christianprescott committed Aug 2, 2015
1 parent 0ae0a19 commit faf47ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,9 @@ $(document).ready(function(){
$dialog.html(content);
$dialog.dialog( "option", options );

// remove old event bindings
$dialog.unbind();

//fix scrollTo issue with dialog
$dialog.bind( "dialogopen", function(event, ui) {
$('.ui-widget-overlay, .ui-dialog').css('position', 'fixed');
Expand Down

0 comments on commit faf47ab

Please sign in to comment.