Changeset 28 for trunk


Ignore:
Timestamp:
03/05/05 06:12:56 (15 years ago)
Author:
gogo
Message:

Cancel dialog when no selection is made and no anchor is "focused" see
ticket #16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Linker/linker.js

    r20 r28  
    5959} 
    6060 
     61Linker.prototype._lc = function(string) 
     62{ 
     63  return HTMLArea._lc(string, 'Linker'); 
     64} 
     65 
    6166Linker.prototype._createLink = function(a) 
    6267{ 
     68  if(!a && this.editor._selectionEmpty(this.editor._getSelection())) 
     69  { 
     70    alert(this._lc("You must select some text before making a new link.")); 
     71    return false; 
     72  } 
    6373 
    6474  var inputs = 
     
    363373} 
    364374 
    365 Linker.Dialog.prototype._lc = function(string) 
    366 { 
    367   return HTMLArea._lc(string, 'Linker'); 
    368 } 
     375Linker.Dialog.prototype._lc = Linker.prototype._lc; 
    369376 
    370377Linker.Dialog.prototype.show = function(inputs, ok, cancel) 
Note: See TracChangeset for help on using the changeset viewer.