Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
don't bind modals when they don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed May 28, 2011
1 parent 6d8269c commit c975aae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions media/js/impala/addon_details.js
Expand Up @@ -83,7 +83,9 @@ $(function () {
$document.scroll();
})();

$('#review-add-box').modal('#add-review', { width: '650px' });
if ($('#review-add-box').exists())
$('#review-add-box').modal('#add-review', { width: '650px' });

$('#privacy-policy').modal('.privacy-policy', { width: '500px' });
if ($('#privacy-policy').exists())
$('#privacy-policy').modal('.privacy-policy', { width: '500px' });
});

0 comments on commit c975aae

Please sign in to comment.