This repository has been archived by the owner on May 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove inline Javascript for administrator/components/com_joomlaupda…
…te/tmpl/update/default.php (#100) * update2 * use array
- Loading branch information
1 parent
0c36940
commit 3849822
Showing
3 changed files
with
50 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
Joomla = window.Joomla || {}; | ||
|
||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const JoomlaUpdateOptions = Joomla.getOptions('joomlaupdate'); | ||
window.joomlaupdate_password = JoomlaUpdateOptions.password; | ||
window.joomlaupdate_totalsize = JoomlaUpdateOptions.totalsize; | ||
window.joomlaupdate_ajax_url = JoomlaUpdateOptions.ajax_url; | ||
window.joomlaupdate_return_url = JoomlaUpdateOptions.return_url; | ||
window.pingExtract(); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION. | ||
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD. | ||
**/ | ||
|
||
/** | ||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
Joomla = window.Joomla || {}; | ||
|
||
document.addEventListener('DOMContentLoaded', function () { | ||
var JoomlaUpdateOptions = Joomla.getOptions('joomlaupdate'); | ||
window.joomlaupdate_password = JoomlaUpdateOptions.password; | ||
window.joomlaupdate_totalsize = JoomlaUpdateOptions.totalsize; | ||
window.joomlaupdate_ajax_url = JoomlaUpdateOptions.ajax_url; | ||
window.joomlaupdate_return_url = JoomlaUpdateOptions.return_url; | ||
window.pingExtract(); | ||
}); |