Skip to content

Commit

Permalink
Merge pull request reinhardfuehricht#22 from andypa/master
Browse files Browse the repository at this point in the history
[BUGFIX] Added sha1-hash to addJS key
  • Loading branch information
jmverges authored Oct 6, 2016
2 parents 936e23d + d5b51fd commit fabf64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/AjaxHandler/JQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function initAjax()
if (!$disableJS) {
$init = $this->getJavascriptFormInit($formSelector, $submitButtonSelector, $isAjaxSubmit, $autoDisableSubmitButton, $validateFields);
$this->addJS('<script type="text/javascript" src="typo3conf/ext/formhandler/Resources/Public/JavaScript/ajax.js"></script>', 'base', false);
$this->addJS('<script type="text/javascript"> ' . $init . ' </script>', 'ext');
$this->addJS('<script type="text/javascript"> ' . $init . ' </script>', 'ext-'.sha1($formSelector));
}
}

Expand Down

0 comments on commit fabf64a

Please sign in to comment.