mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-22 19:09:00 +00:00
Regenerated composer.lock, reformatted config.xml and replaced let as well as arrow functions in patchtester.js file.
This commit is contained in:
parent
502a4937ba
commit
4103c5f154
5
composer.lock
generated
5
composer.lock
generated
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "74b98490277fecd02473d802a0fe279a",
|
||||
"content-hash": "35e372f08cd218b7040fd37d8e7dcaeb",
|
||||
"packages": [],
|
||||
"packages-dev": [
|
||||
{
|
||||
@ -1067,8 +1067,7 @@
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
"php": "^7.0",
|
||||
"ext-json": "*"
|
||||
"php": "^5.3.10|^7.0"
|
||||
},
|
||||
"platform-dev": {
|
||||
"php": "^5.6|^7.0"
|
||||
|
@ -9,10 +9,10 @@ if (typeof Joomla === 'undefined') {
|
||||
throw new Error('PatchTester JavaScript requires the Joomla core JavaScript API')
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", (event) => {
|
||||
document.addEventListener("DOMContentLoaded", function (event) {
|
||||
|
||||
let submitPatch = document.querySelectorAll(".submitPatch");
|
||||
let pullIdForm = document.querySelector("#pull_id");
|
||||
var submitPatch = document.querySelectorAll(".submitPatch");
|
||||
var pullIdForm = document.querySelector("#pull_id");
|
||||
|
||||
/**
|
||||
* EventListener which listens on submitPatch Button,
|
||||
@ -21,12 +21,13 @@ document.addEventListener("DOMContentLoaded", (event) => {
|
||||
*
|
||||
* @param {Event} event
|
||||
*/
|
||||
submitPatch.forEach((element) => element.addEventListener("click", (event) => {
|
||||
let currentTarget = event.currentTarget,
|
||||
data = currentTarget.dataset.task.split("-"),
|
||||
task = data[0];
|
||||
submitPatch.forEach(function (element) {
|
||||
element.addEventListener("click", function (event) {
|
||||
var currentTarget = event.currentTarget;
|
||||
var data = currentTarget.dataset.task.split("-");
|
||||
|
||||
pullIdForm.value = data[1];
|
||||
Joomla.submitform(task);
|
||||
}));
|
||||
Joomla.submitform(data[0]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user