Changeset 48e8b31 in github


Ignore:
Timestamp:
Oct 13, 2010 4:35:08 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
ad334a12
Parents:
f75adec
Message:
  • Fix googiespell click events handling
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/googiespell.js

    rf75adec r48e8b31  
    8383    // Set document's onclick to hide the language and error menu 
    8484    $(document).bind('click', function(e) { 
    85         if($(e.target).attr('googie_action_btn') != '1' && ref.isLangWindowShown()) 
     85        var target = $(e.target); 
     86        if(target.attr('googie_action_btn') != '1' && ref.isLangWindowShown()) 
    8687                ref.hideLangWindow(); 
    87             if($(e.target).attr('googie_action_btn') != '1' && ref.isErrorWindowShown()) 
     88            if(target.attr('googie_action_btn') != '1' && ref.isErrorWindowShown()) 
    8889            ref.hideErrorWindow(); 
    8990    }); 
     
    578579 
    579580    var ref = this; 
     581 
    580582    if (this.edit_layer_dbl_click) { 
    581         $(this.edit_layer).bind('click', function(e) { 
     583        $(this.edit_layer).dblclick(function(e) { 
    582584            if (e.target.className != 'googie_link' && !ref.isErrorWindowShown()) { 
    583585                ref.resumeEditing(); 
     
    767769 
    768770this.isLangWindowShown = function() { 
    769     return $(this.language_window).is(':hidden'); 
     771    return $(this.language_window).is(':visible'); 
    770772}; 
    771773 
Note: See TracChangeset for help on using the changeset viewer.