Dotclear

Changeset 3994:c335bb3ff76a


Ignore:
Timestamp:
06/28/19 13:58:16 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Switching from inline JS variables to JSON script, maintenance plugin

Location:
plugins/maintenance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/maintenance/index.php

    r3874 r3994  
    118118if ($task && $task->ajax()) { 
    119119    echo 
    120     '<script type="text/javascript">' . "\n" . 
    121     dcPage::jsVar('dotclear.msg.wait', __('Please wait...')) . 
    122     '</script>' . 
     120    dcPage::jsJson('maintenance', ['wait' => __('Please wait...')]) . 
    123121    dcPage::jsLoad(dcPage::getPF('maintenance/js/dc.maintenance.js')); 
    124122} 
  • plugins/maintenance/js/dc.maintenance.js

    r3880 r3994  
    1 /*global $, dotclear */ 
     1/*global $, dotclear, getData */ 
    22'use strict'; 
     3 
     4Object.assign(dotclear.msg, getData('maintenance')); 
    35 
    46$(function() { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map