Changes between Version 8 and Version 9 of Development/PlugIns/JavaScript


Ignore:
Timestamp:
Dec 17, 2006 12:31:39 PM (13 years ago)
Author:
timothy
Comment:

Made the handleClickedToolbarItem check what the toolbar item's identifier is. More correct example.

Legend:

Unmodified
Added
Removed
Modified
  • Development/PlugIns/JavaScript

    v8 v9  
    6161// perform the action associated with 'toolbarItem' for 'view' 
    6262function handleClickedToolbarItem( toolbarItem, view ) { 
    63         window.location.href = 'http://www.digg.com'; 
     63        if( toolbarItem.itemIdentifier() == 'diggBookmarkItem' ) 
     64                window.location.href = 'http://www.digg.com'; 
    6465} 
    6566}}}