Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkShare/firefox.php

    r790 r873  
    1010  var msg="Přidání vyhledávacího modulu selhalo - ";
    1111
    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 == ""){
    1414      alert(msg + "nebyla zadána jeho URL.");
    1515      return false;
    1616    }
    17     if(iconURL == null || iconURL == ""){
     17    if (iconURL == null || iconURL == ""){
    1818      alert(msg + "nebyla zadána URL ikony.");
    1919      return false;
    2020    }
    21     if(engineURL.search(/^http:\/\//i) == -1 || engineURL.search(/\.src$/i) == -1){
     21    if (engineURL.search(/^http:\/\//i) == -1 || engineURL.search(/\.src$/i) == -1){
    2222      alert(msg + "nebyla zadána platná URL.");
    2323      return false;
    2424    }
    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){
    2626      alert(msg + " nebyla platná URL ikony.");
    2727      return false;
    2828    }
    29     if(suggestedTitle == null) suggestedTitle = "";
    30     if(suggestedCategory == null) suggestedCategory = "";
     29    if (suggestedTitle == null) suggestedTitle = "";
     30    if (suggestedCategory == null) suggestedCategory = "";
    3131    window.sidebar.addSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory);
    3232  }else{
Note: See TracChangeset for help on using the changeset viewer.