- Timestamp:
- 12/19/12 07:34:57 (13 years ago)
- Branch:
- twig
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/default-templates/js_helpers.html.twig
r1085 r1088 11 11 <script type="text/javascript"> 12 12 //<![CDATA[ 13 dotclear.nonce = '{{ Nonce}}';13 dotclear.nonce = '{{session.nonce}}'; 14 14 dotclear.img_plus_src = '{{theme_url}}images/expand.png'; 15 15 dotclear.img_plus_alt = '{{__('uncover')}}'; … … 143 143 <script type="text/javascript" src="{{theme_url}}js/jsToolBar/jsToolBar.js"></script> 144 144 145 {% if enable_wysiwyg %}145 {% if current_user.options.enable_wysiwyg %} 146 146 <script type="text/javascript" src="{{theme_url}}js/jsToolBar/jsToolBar.wysiwyg.js"></script> 147 147 {% endif %} … … 208 208 jsToolBar.prototype.elements.post_link.title = '{{__('Link to an entry')}}'; 209 209 210 {% if media_manage%}210 {% if current_user.rights.media %} 211 211 jsToolBar.prototype.elements.img_select.disabled = true; 212 212 {% endif %} … … 217 217 {% macro candy_upload(params) %} 218 218 {% if params is empty %}{% set params = {} %} {% endif %} 219 {% set params = params|merge(['sess_id={{sess _id}}','sess_uid={{sess_uid}}','xd_check={{Nonce}}']) %}219 {% set params = params|merge(['sess_id={{session.id}}','sess_uid={{session.uid}}','xd_check={{session.nonce}}']) %} 220 220 <!-- jsCandyUpload --> 221 221 <link rel="stylesheet" href="{{theme_url}}style/candyUpload/style.css" type="text/css" media="screen" />
Note: See TracChangeset
for help on using the changeset viewer.