Dotclear

Changeset 2225:7d94f2597021 for admin/js


Ignore:
Timestamp:
10/03/13 10:56:45 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Open outgoing links in new window and append "new window" to title attribute only if javascript is enabled
Closes #1586

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/common.js

    r2201 r2225  
    240240}; 
    241241 
     242 
    242243/* Dotclear common object 
    243244-------------------------------------------------------- */ 
     
    403404               $('#footer a[href!="help.php"]').attr('title', $('#footer a[href!="help.php"]').attr('title') + this.data ); 
    404405          } 
     406     }); 
     407 
     408     // manage outgoing links 
     409     $('.outgoing').each(function() { 
     410          $(this).prop('title',$(this).attr('title')+' ('+dotclear.msg.new_window+')'); 
     411     }).click(function(e) { 
     412          e.preventDefault(); 
     413          window.open($(this).attr('href')); 
    405414     }); 
    406415 
Note: See TracChangeset for help on using the changeset viewer.

Sites map