Dotclear


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

Switching from inline JS variables to JSON script, pages plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/list.php

    r3874 r3995  
    5757    dcPage::jsLoad('js/jquery/jquery-ui.custom.js') . 
    5858    dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js') . 
    59     dcPage::jsLoad(dcPage::getPF('pages/js/list.js')) . 
    60     '<script type="text/javascript">' . "\n" . 
    61     dcPage::jsVar('dotclear.msg.confirm_delete_posts', __("Are you sure you want to delete selected pages?")) . 
    62         '</script>'; 
    63  
    64     ?> 
     59    dcPage::jsJson('pages_list', ['confirm_delete_posts' => __("Are you sure you want to delete selected pages?")]) . 
     60    dcPage::jsLoad(dcPage::getPF('pages/js/list.js')) 
     61  ?> 
    6562</head> 
    6663 
Note: See TracChangeset for help on using the changeset viewer.

Sites map