Skip to content

Commit

Permalink
[VER] 4.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Oct 16, 2024
1 parent 39d14f2 commit 88678a8
Show file tree
Hide file tree
Showing 7 changed files with 905 additions and 7 deletions.
894 changes: 894 additions & 0 deletions docs/index.ad6e1339.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/index.dcc82332.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="fr" xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" href="index.2d9dd1d7.css"><script type="module" src="index.runtime.f783cced.js"></script><title>Mon compte</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="description" content="Maps"><meta name="keywords" content><link rel="icon" type="image/png" href="logo.fb0b1dda.png"><meta name="mobile-web-app-capable" content="yes"><meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="translucent-black"><link rel="apple-touch-icon" href="logo.fb0b1dda.png"><link rel="apple-touch-startup-image" href="logo.fb0b1dda.png"><meta name="format-detection" content="telephone=no"><meta name="msapplication-tap-highlight" content="no"></head><body data-page="site" data-show="home"> <div data-role="content"> <div class="connected"> <div id="page-accueil" class="page"></div> <div id="page-profil" class="page"></div> <div id="page-cartes" class="page"></div> <div id="page-medias" class="page"></div> <div id="page-maps-detail" class="page"></div> <div id="page-public-profile" class="page"></div> </div> <div class="disconnected"> <h1>Mon compte</h1> <h2>En cours de connexion...</h2> <button class="button button-colored connect">se connecter...</button> </div> </div> <script type="module" src="index.b0c57775.js"></script> </body></html>
<!DOCTYPE html><html lang="fr" xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" href="index.dcc82332.css"><script type="module" src="index.runtime.2b4cfeaa.js"></script><title>Mon compte</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="description" content="Maps"><meta name="keywords" content><link rel="icon" type="image/png" href="logo.fb0b1dda.png"><meta name="mobile-web-app-capable" content="yes"><meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="translucent-black"><link rel="apple-touch-icon" href="logo.fb0b1dda.png"><link rel="apple-touch-startup-image" href="logo.fb0b1dda.png"><meta name="format-detection" content="telephone=no"><meta name="msapplication-tap-highlight" content="no"></head><body data-page="site" data-show="home"> <div data-role="content"> <div class="connected"> <div id="page-accueil" class="page"></div> <div id="page-profil" class="page"></div> <div id="page-cartes" class="page"></div> <div id="page-medias" class="page"></div> <div id="page-maps-detail" class="page"></div> <div id="page-public-profile" class="page"></div> </div> <div class="disconnected"> <h1>Mon compte</h1> <h2>En cours de connexion...</h2> <button class="button button-colored connect">se connecter...</button> </div> </div> <script type="module" src="index.ad6e1339.js"></script> </body></html>
1 change: 1 addition & 0 deletions docs/index.runtime.2b4cfeaa.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mcuser",
"version": "4.3.3",
"version": "4.3.4",
"description": "Gestion du compte utilisateur",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
8 changes: 4 additions & 4 deletions src/page/mapDetails/mapDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ mapDetailsElt.querySelector('.actions button.edit').addEventListener('click', (e
displayMap(response);
dialog.show({
content: "Les modifications ont été enregistrées",
buttons: {close: "OK"},
buttons: { close: "OK" },
closeOnSubmit: true,
autoclose: 2000,
});
Expand Down Expand Up @@ -83,7 +83,7 @@ mapDetailsElt.querySelector('button.new-id_edit').addEventListener('click', (e)
});

mapDetailsElt.querySelector('[data-attr="share"]').addEventListener('click', evt => {
const share = evt.target.checked ? 'atlas' : 'private';
const share = evt.target.checked ? 'atlas' : 'public';

api.updateMap(map.edit_id, {share : share}, (response) => {
let msg = '';
Expand All @@ -93,7 +93,7 @@ mapDetailsElt.querySelector('[data-attr="share"]').addEventListener('click', evt
msg = 'Une erreur est survenue';
}else{
map = response;
if(map.share == 'private'){
if(map.share == 'public'){
msg = "la carte est retirée de l'atlas";
}else{
msg = "la carte est ajoutée dans l'atlas";
Expand Down Expand Up @@ -154,7 +154,7 @@ function displayMap(map){
break;
case 'share':
elt.checked = true;
if(map.share == 'private'){
if(map.share !== 'atlas'){
elt.checked = false;
}
break
Expand Down
4 changes: 3 additions & 1 deletion src/page/mapDetails/mapDetails.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@
}



.ol-ext-dialog.mc-save-map [data-attr="share"] {
display: none;
}


// #page-maps-detail .partage{
Expand Down

0 comments on commit 88678a8

Please sign in to comment.