home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 July / 07_02.iso / software / mdmx / files / DreamweaverMXInstaller.exe / Disk1 / data1.cab / Configuration_En / Commands / DeleteRepeatEntry.js < prev    next >
Encoding:
JavaScript  |  2002-05-01  |  983 b   |  57 lines

  1. // Copyright 2001 Macromedia, Inc. All rights reserved.
  2.  
  3. //---------------   GLOBAL VARIABLES   ---------------
  4.  
  5. var targetDom = null;
  6. var targetRegion = null; 
  7.  
  8.  
  9. //---------------     API FUNCTIONS    ---------------
  10.  
  11.  
  12.  
  13. function isDOMRequired() {
  14.     return true;
  15. }
  16.  
  17. function canAcceptCommand()
  18.     {            
  19.     targetDom = arguments[0]; 
  20.     if (targetDom == null)
  21.         targetDom = dw.getDocumentDOM(); 
  22.  
  23.     if (targetDom == null)
  24.         return false; 
  25.     
  26.     targetRegion = arguments[1]; 
  27.     
  28.     return true; 
  29.     } //canAcceptCommand
  30.  
  31. function receiveArguments()
  32.     {
  33.     targetDom = arguments[0];
  34.     if (targetDom == null)
  35.         targetDom = dw.getDocumentDOM();
  36.     
  37.     targetRegion = arguments[1]; 
  38.     }
  39.  
  40.     
  41. function DoCommand()
  42.     {
  43.     if (!canDeleteRepeatEntry(targetDom, targetRegion))
  44.         dw.beep();
  45.     else if (!doDeleteRepeatEntry(targetDom, targetRegion))
  46.         dw.beep();
  47.     
  48.     targetDom = null; 
  49.     targetRegion = null;
  50.     }
  51.     
  52.     
  53. //---------------    LOCAL FUNCTIONS   ---------------
  54.  
  55.  
  56.  
  57.