Overview
Comment:JS: admin_url est disponible dans la globale "g", pas besoin de data-url
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1265a6da44e5e04739ca48051a289a8073b405d7
User & Date: bohwaz on 2019-10-06 21:06:59
Other Links: manifest | tags
Context
2019-10-06
21:07
Chargement dynamique de l'├ęditeur de squelette check-in: d0d15ad31b user: bohwaz tags: trunk
21:06
JS: admin_url est disponible dans la globale "g", pas besoin de data-url check-in: 1265a6da44 user: bohwaz tags: trunk
21:06
Correction, assignation de l'URL admin pour les pages d'erreur check-in: 443079fc11 user: bohwaz tags: trunk
Changes

Modified src/templates/admin/_head.tpl from [d5fc274287] to [98aefc23bb].

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
    <link rel="stylesheet" type="text/css" href="{$admin_url}static/print.css?{$version_hash}" media="print" />
    <link rel="stylesheet" type="text/css" href="{$admin_url}static/handheld.css?{$version_hash}" media="handheld,screen and (max-width:981px)" />
    {if isset($config)}
        {custom_colors config=$config}
    {/if}
</head>

<body{if !empty($body_id)} id="{$body_id}"{/if} data-url="{$admin_url}">

{if empty($is_popup)}
<header class="header">
    <nav class="menu">
    <ul>
    {if !$is_logged}
        <li><a href="{$www_url}">&larr; Retour au site</a></li>







|







32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
    <link rel="stylesheet" type="text/css" href="{$admin_url}static/print.css?{$version_hash}" media="print" />
    <link rel="stylesheet" type="text/css" href="{$admin_url}static/handheld.css?{$version_hash}" media="handheld,screen and (max-width:981px)" />
    {if isset($config)}
        {custom_colors config=$config}
    {/if}
</head>

<body{if !empty($body_id)} id="{$body_id}"{/if}>

{if empty($is_popup)}
<header class="header">
    <nav class="menu">
    <ul>
    {if !$is_logged}
        <li><a href="{$www_url}">&larr; Retour au site</a></li>

Modified src/www/admin/static/scripts/file_upload.js from [b26cec5034] to [dc9fa75b77].

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
		return false;

	var uploadHelper = function ()
	{
		var rusha = new Rusha();
		var form = $('#f_upload');
		var max_size = $('#f_maxsize').value;
		var admin_url = document.body.getAttribute('data-url');

		form.onsubmit = function () {
			return true;
		};

		$('#f_fichier').onchange = function () {
			if (this.files.length < 1)







|







3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
		return false;

	var uploadHelper = function ()
	{
		var rusha = new Rusha();
		var form = $('#f_upload');
		var max_size = $('#f_maxsize').value;
		var admin_url = g.admin_url;

		form.onsubmit = function () {
			return true;
		};

		$('#f_fichier').onchange = function () {
			if (this.files.length < 1)