Script http://browser-update.org/update.js loads on every ajax-request in my views
That's what I see at the end of my body:
<.script type="text/javascript" src="http://browser-update.org/update.js"><./script>
<.script type="text/javascript" src="http://browser-update.org/update.js"><./script>
<.script type="text/javascript" src="http://browser-update.org/update.js"><./script>
<.script type="text/javascript" src="http://browser-update.org/update.js"><./script>
<.script type="text/javascript" src="http://browser-update.org/update.js"><./script>

Comments

fortis’s picture

there is my patch - just add (context == document) condition

pebosi’s picture

Status: Active » Fixed

Please test latest dev. Thanks

fortis’s picture

with last release 1.1 i got error:
Error: Function name must be a string in
/var/www/sites/robo3.ru/sites/all/modules/bu/bu.module, line 95

function bu_get_versions($browser, $key = NULL) {
  return $array();

  switch ($browser) {
    case 'firefox':
      $return = array('3', '3.5', '3.6', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15');
      break;
    case 'ie':
      $return = array('6', '7', '8', '9');
      break;
    case 'opera':
      $return = array('10.1', '10.5', '10.6', '11');
      break;
    case 'safari':
      $return = array('3', '3.2', '4', '5');
      break;
  }

  if ($key && isset($return[$key])) {
    return $return[$key];
  }

  return $return;
}

$array() ??

pebosi’s picture

Please use latest 1.2

fortis’s picture

ok, thanks

pebosi’s picture

Status: Fixed » Closed (fixed)

Closing

pebosi’s picture

Issue summary: View changes

edit