Changeset 873 for trunk/Modules/NetworkShare/firefox.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkShare/firefox.php
r790 r873 10 10 var msg="Přidání vyhledávacího modulu selhalo - "; 11 11 12 if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")){13 if (engineURL == null || engineURL == ""){12 if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")){ 13 if (engineURL == null || engineURL == ""){ 14 14 alert(msg + "nebyla zadána jeho URL."); 15 15 return false; 16 16 } 17 if (iconURL == null || iconURL == ""){17 if (iconURL == null || iconURL == ""){ 18 18 alert(msg + "nebyla zadána URL ikony."); 19 19 return false; 20 20 } 21 if (engineURL.search(/^http:\/\//i) == -1 || engineURL.search(/\.src$/i) == -1){21 if (engineURL.search(/^http:\/\//i) == -1 || engineURL.search(/\.src$/i) == -1){ 22 22 alert(msg + "nebyla zadána platná URL."); 23 23 return false; 24 24 } 25 if (iconURL.search(/^http:\/\//i) == -1 || iconURL.search(/\.(gif|jpg|jpeg|png)$/i) == -1){25 if (iconURL.search(/^http:\/\//i) == -1 || iconURL.search(/\.(gif|jpg|jpeg|png)$/i) == -1){ 26 26 alert(msg + " nebyla platná URL ikony."); 27 27 return false; 28 28 } 29 if (suggestedTitle == null) suggestedTitle = "";30 if (suggestedCategory == null) suggestedCategory = "";29 if (suggestedTitle == null) suggestedTitle = ""; 30 if (suggestedCategory == null) suggestedCategory = ""; 31 31 window.sidebar.addSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory); 32 32 }else{
Note:
See TracChangeset
for help on using the changeset viewer.