Skip to content

Commit

Permalink
[BUGFIX] Added sha1-hash to addJS key
Browse files Browse the repository at this point in the history
  • Loading branch information
andypa authored Oct 6, 2016
1 parent 936e23d commit d5b51fd
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 d5b51fd

Please sign in to comment.