Skip to content

Commit

Permalink
JS coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
smz committed Nov 13, 2014
1 parent acdadac commit a6a981b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/cms/html/bootstrap.php
Expand Up @@ -335,9 +335,9 @@ public static function renderModal($selector = 'modal', $params = array(), $body
$params['width'] = isset($params['width']) ? " width=\"{$params['width']}\"" : '';

// Add the script to the document head.
$script[] = "jQuery(document).ready(function() {";
$script[] = " jQuery('#{$selector}').on('show', function() {";
$script[] = " jQuery(this).find('.modal-body').html('<iframe class=\"iframe\" src=\"{$params['url']}\""
$script[] = "jQuery(document).ready(function($) {";
$script[] = " $('#{$selector}').on('show', function() {";
$script[] = " $(this).find('.modal-body').html('<iframe class=\"iframe\" src=\"{$params['url']}\""
. $params['height'] . $params['width'] . "></iframe>{$body}');";
$script[] = " });";
$script[] = "});";
Expand Down

0 comments on commit a6a981b

Please sign in to comment.