Dotclear

Changeset 2486:e45e3db10b85


Ignore:
Timestamp:
10/23/13 21:52:57 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
2.6
Message:

Must not open link with class modal in a new window
Closes #1809

Location:
admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/js/common.js

    r2298 r2486  
    410410     // manage outgoing links 
    411411     $('a').filter(function() { 
    412           return ((this.hostname && this.hostname!=location.hostname) 
     412          return ((this.hostname && this.hostname!=location.hostname && !$(this).hasClass('modal')) 
    413413               || $(this).hasClass('outgoing')); 
    414414     }).each(function() { 
  • admin/post.php

    r2390 r2486  
    589589          http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->getInfo('user_pwd')). 
    590590          '/'.$post->post_url); 
    591           echo '<a id="post-preview" href="'.$preview_url.'" class="button" accesskey="p">'.__('Preview').' (p)'.'</a> '; 
     591          echo '<a id="post-preview" href="'.$preview_url.'" class="button modal" accesskey="p">'.__('Preview').' (p)'.'</a> '; 
    592592     } else { 
    593593          echo 
Note: See TracChangeset for help on using the changeset viewer.

Sites map