Skip to content

Commit 9f1593d

Browse files
committed
Fixed setting progress header in case of error
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
1 parent 3c132ba commit 9f1593d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

media/com_patchtester/js/fetcher.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ class PatchFetcher {
8282
} catch (error) {
8383
try {
8484
if (response.error || response.success === false) {
85-
document.getElementById('patchtester-progress-header').innerText(Joomla.JText._('COM_PATCHTESTER_FETCH_AN_ERROR_HAS_OCCURRED'));
85+
document.getElementById('patchtester-progress-header').innerText = Joomla.JText._('COM_PATCHTESTER_FETCH_AN_ERROR_HAS_OCCURRED');
8686
document.getElementById('patchtester-progress-message').innerHTML = Joomla.sanitizeHtml(response.message);
8787
}
8888
} catch (ignore) {
8989
if (error === '') {
9090
error = Joomla.JText._('COM_PATCHTESTER_NO_ERROR_RETURNED');
9191
}
9292

93-
document.getElementById('patchtester-progress-header').innerText(Joomla.JText._('COM_PATCHTESTER_FETCH_AN_ERROR_HAS_OCCURRED'));
93+
document.getElementById('patchtester-progress-header').innerText = Joomla.JText._('COM_PATCHTESTER_FETCH_AN_ERROR_HAS_OCCURRED');
9494
document.getElementById('patchtester-progress-message').innerHTML = Joomla.sanitizeHtml(error);
9595
document.getElementById('progress').remove();
9696
}
@@ -99,7 +99,7 @@ class PatchFetcher {
9999
},
100100
onError: (jqXHR) => {
101101
const json = (typeof jqXHR === 'object' && jqXHR.responseText) ? jqXHR.responseText : null;
102-
document.getElementById('patchtester-progress-header').innerText(Joomla.JText._('COM_PATCHTESTER_FETCH_AN_ERROR_HAS_OCCURRED'));
102+
document.getElementById('patchtester-progress-header').innerText = Joomla.JText._('COM_PATCHTESTER_FETCH_AN_ERROR_HAS_OCCURRED');
103103
document.getElementById('patchtester-progress-message').innerHTML = Joomla.sanitizeHtml(json);
104104
document.getElementById('progress').remove();
105105
}

0 commit comments

Comments
 (0)