Changeset 2727715
- Timestamp:
- 05/21/2022 08:53:17 AM (4 years ago)
- Location:
- widgets-for-amazon/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
js/amazon-search.js (modified) (3 diffs)
-
widgets-for-amazon.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
widgets-for-amazon/trunk/README.txt
r2725080 r2727715 7 7 Requires PHP: 7.0 8 8 Tested up to: 5.9 9 Stable tag: 1.0.1 29 Stable tag: 1.0.13 10 10 License: GPLv3 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 52 52 == Changelog == 53 53 54 #### 1.0.13 - 2022-05-21 55 56 - Fix for "Cannot set properties of null (setting 'innerHTML')". 57 54 58 #### 1.0.12 - 2022-05-17 55 59 -
widgets-for-amazon/trunk/js/amazon-search.js
r2723816 r2727715 11 11 function eggnstone_widgets_fill_amazon_search_box(index, url, keywords, footerMessage) 12 12 { 13 const element = document.getElementById("amazon-search-" + index);13 const elementName = "amazon-search-" + index; 14 14 15 15 const req = new XMLHttpRequest(); … … 19 19 req.addEventListener("load", function () 20 20 { 21 const element = document.getElementById(elementName); 22 if (element) 23 element.innerHTML = eggnstone_widgets_create_search_box_table_with_message(index, url, keywords, "Loading ...", footerMessage); 24 else 25 console.error("Widgets for Amazon: Could not find element '" + elementName + "'. (2)"); 26 21 27 if (req.status === 200) 22 28 { … … 33 39 }); 34 40 35 element.innerHTML = eggnstone_widgets_create_search_box_table_with_message(index, url, keywords, "Loading ...", footerMessage); 41 const element = document.getElementById(elementName); 42 if (element) 43 element.innerHTML = eggnstone_widgets_create_search_box_table_with_message(index, url, keywords, "Loading ...", footerMessage); 44 else 45 console.log("Widgets for Amazon: Could not find element '" + elementName + "'. (1)"); 36 46 37 47 req.send(null); -
widgets-for-amazon/trunk/widgets-for-amazon.php
r2725080 r2727715 5 5 * Plugin URI: https://blog.eggnstone.com/blog/widgets-for-amazon-for-wordpress 6 6 * Description: Widgets for Amazon by eggnstone 7 * Version: 1.0.1 27 * Version: 1.0.13 8 8 * Author: eggnstone 9 9 * Author URI: https://eggnstone.com
Note: See TracChangeset
for help on using the changeset viewer.