Dotclear

Changeset 1771:8764fa2fdf5d for inc


Ignore:
Timestamp:
09/10/13 10:54:36 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Children:
1773:1f2fd319f35e, 1774:147afd09394c
Message:

Upgrade jQuery to 1.10.2 using jQuery migrate plugin (1.2.1)
Add a setting to mute/show warnings generated by jQuery migrate plugin.

Todo: add that setting in install and update process.

Location:
inc/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r1741 r1771  
    474474     public static function jsCommon() 
    475475     { 
     476          $mute_or_no = ''; 
     477          if ($GLOBALS['core']->blog->settings->system->jquery_migrate_mute) { 
     478               $mute_or_no .= 
     479                    '<script type="text/javascript">'."\n". 
     480                    "//<![CDATA[\n". 
     481                    'jQuery.migrateMute = true;'. 
     482                    "\n//]]>\n". 
     483                    "</script>\n"; 
     484          } 
     485 
    476486          return 
    477487          self::jsLoad('js/jquery/jquery.js'). 
     488          $mute_or_no. 
     489          self::jsLoad('js/jquery/jquery-migrate-1.2.1.js'). 
    478490          self::jsLoad('js/jquery/jquery.biscuit.js'). 
    479491          self::jsLoad('js/jquery/jquery.bgFade.js'). 
     
    484496          "//<![CDATA[\n". 
    485497          self::jsVar('dotclear.nonce',$GLOBALS['core']->getNonce()). 
    486  
    487498          self::jsVar('dotclear.img_plus_src','images/expand.png'). 
    488499          self::jsVar('dotclear.img_plus_alt',__('uncover')). 
  • inc/admin/prepend.php

    r1620 r1771  
    374374          } 
    375375     } 
     376      
     377     if (empty($core->blog->settings->system->jquery_migrate_mute)) { 
     378          $core->blog->settings->system->put('jquery_migrate_mute', true, 'boolean', 'Mute warnings for jquery migrate plugin ?', false); 
     379     } 
    376380} 
    377381?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map