mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-01-05 07:52:10 +00:00
Update patchtester.js
This commit is contained in:
parent
2434668162
commit
28871503bf
@ -23,7 +23,11 @@ const PatchTester = {
|
|||||||
* @param {Number} id The item ID
|
* @param {Number} id The item ID
|
||||||
*/
|
*/
|
||||||
submitpatch: (task, id) => {
|
submitpatch: (task, id) => {
|
||||||
document.getElementById('pull_id')?.value = id;
|
const value = document.getElementById('pull_id')?.value;
|
||||||
|
|
||||||
|
if (value) {
|
||||||
|
value = id;
|
||||||
|
}
|
||||||
|
|
||||||
Joomla.submitform(task);
|
Joomla.submitform(task);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user