Changeset 728 for trunk/plugins


Ignore:
Timestamp:
02/12/07 12:53:54 (13 years ago)
Author:
ray
Message:

Linker update:

  • added Xinha.Config.prototype.Linker.treeCaption that allows to freely configure the heading for the files tree
  • added white background for tree (gives more clearly arranged look)
  • clear example URL on focus
  • hide "remove link" button when not editing a link
  • changed button texts from ALL CAPITALS to normal case (also in SuperClean?) to harmonize with the other plugins
  • expanded checked to checked="checked" in dialog.html
Location:
trunk/plugins
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Linker/dialog.html

    r198 r728  
    44<div id="[options]" > 
    55  <fieldset> 
    6     <legend><label><input type="radio" name="[type]" value="url" checked onclick=" 
     6    <legend><label><input type="radio" name="[type]" value="url" checked="checked" onclick=" 
    77      document.getElementById('[urltable]').style.display=this.checked?'':'none'; 
    88      document.getElementById('[mailtable]').style.display=this.checked?'none':''; 
     
    1212      <tr> 
    1313        <th><label for="[href]"><l10n>URL:</l10n> </label></th> 
    14         <td><input type="text" name="[href]" style="width:100%" value="http://www.example.com/" /></td> 
     14        <td><input type="text" name="[href]" style="width:100%" value="http://www.example.com/" onfocus="if (this.value == 'http://www.example.com/') this.value = '';" /></td> 
    1515      </tr> 
    1616      <tr valign="top"> 
    1717        <th><l10n>Target:</l10n></th> 
    1818        <td> 
    19           <div><label><input type="radio" name="[target]" value="" onclick="document.getElementById('[popuptable]').style.display='none';"      checked /> <l10n>Ordinary Link</l10n></label></div> 
     19          <div><label><input type="radio" name="[target]" value="" onclick="document.getElementById('[popuptable]').style.display='none';"  checked="checked" /> <l10n>Ordinary Link</l10n></label></div> 
    2020          <div><label><input type="radio" name="[target]" value="_top" onclick="document.getElementById('[popuptable]').style.display='none';"   /> <l10n>Same Window (jump out of frames)</l10n></label></div> 
    2121          <div><label><input type="radio" name="[target]" value="_blank" onclick="document.getElementById('[popuptable]').style.display='none';"/> <l10n>New Window</l10n> </label></div> 
     
    3737 
    3838                  <th align="left"><l10n>Toolbar:</l10n></th> 
    39                   <td><input type="checkbox" name="[p_options]" value="toolbar=yes" checked /></td> 
     39                  <td><input type="checkbox" name="[p_options]" value="toolbar=yes" checked="checked" /></td> 
    4040                </tr> 
    4141                <tr> 
     
    4848                <tr> 
    4949                  <th align="left"><l10n>Scrollbars:</l10n></th> 
    50                   <td><input type="checkbox" name="[p_options]" value="scrollbars=yes" checked /></td> 
     50                  <td><input type="checkbox" name="[p_options]" value="scrollbars=yes" checked="checked" /></td> 
    5151 
    5252                  <th align="left"><l10n>Resizeable:</l10n></th> 
    53                   <td><input type="checkbox" name="[p_options]" value="resizeable=yes" checked /></td> 
     53                  <td><input type="checkbox" name="[p_options]" value="resizeable=yes" checked="checked" /></td> 
    5454                </tr> 
    5555              </table> 
     
    6969      <tr> 
    7070        <th><label for="[to]"><l10n>Email Address:</l10n> </label></th> 
    71         <td><input type="text" name="[to]" style="width:100%" value="alice@example.com" /></td> 
     71        <td><input type="text" name="[to]" style="width:100%" value="alice@example.com" onfocus="if (this.value == 'alice@example.com') this.value = '';" /></td> 
    7272      </tr> 
    7373      <tr> 
     
    101101  <div style="text-align:right"> 
    102102    <input type="button" id="[ok]"     value="_(OK)"     /> 
    103     <input type="button" id="[clear]"  value="_(REMOVE LINK)" onclick="this.form['[href]'].value='';this.form['[to]'].value='';document.getElementById('[ok]').click();" /> 
    104     <input type="button" id="[cancel]" value="_(CANCEL)" /> 
     103    <input type="button" id="[clear]"  value="_(Remove Link)" onclick="this.form['[href]'].value='';this.form['[to]'].value='';document.getElementById('[ok]').click();" /> 
     104    <input type="button" id="[cancel]" value="_(Cancel)" /> 
    105105  </div> 
    106106</div> 
  • trunk/plugins/Linker/lang/de.js

    r677 r728  
    55  "You must select some text before making a new link.": "Sie mÃŒssen einen Text markieren um einen Link zu erstellen", 
    66  "Are you sure you wish to remove this link?": "Wollen Sie diesen Link wirklich entfernen?", 
    7   "REMOVE LINK": "LINK ENTFERNEN", 
    8   "CANCEL": "ABBRECHEN", 
     7  "Remove Link": "Link entfernen", 
    98  "URL Link": "URL Adresse", 
    109  "Ordinary Link": "Standard Link", 
  • trunk/plugins/Linker/lang/fr.js

    r677 r728  
    44  "You must select some text before making a new link.": "Vous devez sélectionner un texte avant de créer un nouveau lien", 
    55  "Are you sure you wish to remove this link?": "Confirmez-vous la suppression de ce lien ?", 
    6   "REMOVE LINK": "Supprimer", 
    7   "CANCEL": "Annuler", 
     6  "Remove Link": "Supprimer", 
    87  "URL Link": "Lien URL", 
    98  "Ordinary Link": "Lien standard", 
  • trunk/plugins/Linker/lang/pl.js

    r677 r728  
    66  "Are you sure you wish to remove this link?": "Na pewno chcesz usunÄ 
    77ć odnośnik?", 
    8   "REMOVE LINK": "USUŃ ODNOŚNIK", 
    9   "CANCEL": "ANULUJ", 
     8  "Remove Link": "USUŃ ODNOŚNIK", 
    109  "URL Link": "Adres URL", 
    1110  "Ordinary Link": "Zwykły odnośnik", 
  • trunk/plugins/Linker/linker.js

    r681 r728  
    1616Xinha.Config.prototype.Linker = 
    1717{ 
     18  'treeCaption' : document.location.host, 
    1819  'backend' : _editor_url + 'plugins/Linker/scan.php', 
    1920  'backend_data' : null, 
     
    371372  eval(dTreeName + ' = this.dTree'); 
    372373 
    373   this.dTree.add(this.Dialog_nxtid++, -1, document.location.host, null, document.location.host); 
     374  this.dTree.add(this.Dialog_nxtid++, -1, linker.lConfig.treeCaption , null, linker.lConfig.treeCaption); 
    374375  this.makeNodes(files, 0); 
    375376 
     
    382383  ddTree.style.top =  0 + 'px'; 
    383384  ddTree.style.overflow = 'auto'; 
     385  ddTree.style.backgroundColor = 'white'; 
    384386  this.ddTree = ddTree; 
    385387  this.dTree._linker_premade = this.dTree.toString(); 
     
    529531  } 
    530532   
    531  
     533  // if we're not editing an existing link, hide the remove link button 
     534  if (inputs.href == 'http://www.example.com/' && inputs.to == 'alice@example.com') {  
     535    this.dialog.getElementById('clear').style.display = "none"; 
     536  } 
     537  else { 
     538    this.dialog.getElementById('clear').style.display = ""; 
     539  } 
    532540  // Connect the OK and Cancel buttons 
    533541  var dialog = this.dialog; 
  • trunk/plugins/SuperClean/dialog.html

    r677 r728  
    55  <div style="margin-top: 10px;"> 
    66    <input type="button" id="[ok]"     value="_(OK)"     /> 
    7     <input type="button" id="[cancel]" value="_(CANCEL)" /> 
     7    <input type="button" id="[cancel]" value="_(Cancel)" /> 
    88  </div> 
    99</div> 
Note: See TracChangeset for help on using the changeset viewer.