[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 08/30: #1118 : partage de note Ne peut parta
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 08/30: #1118 : partage de note Ne peut partager note non sauvée |
Date: |
Tue, 02 Jun 2015 22:29:06 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 44b4dec1b6f7974caebf5af321e46206e7196e0b
Author: Dany De Bontridder <address@hidden>
Date: Sat May 30 14:32:41 2015 +0200
#1118 : partage de note
Ne peut partager note non sauvée
---
html/ajax_todo_list.php | 24 ++++++++++++++++++++++--
1 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/html/ajax_todo_list.php b/html/ajax_todo_list.php
index df23aa5..0dd7e20 100644
--- a/html/ajax_todo_list.php
+++ b/html/ajax_todo_list.php
@@ -131,9 +131,9 @@ if ($ac == 'save')
////////////////////////////////////////////////////////////////////////////////
if ($ac=='shared_note')
{
- $id=HtmlInput::default_value_get("todo_id", 0);
+ $id=HtmlInput::default_value_get("todo_id", -1);
// If note_id is not correct then give an error
- if ($id==0||isNumber($id)==0)
+ if ($id==-1||isNumber($id)==0)
{
header('Content-type: text/xml; charset=UTF-8');
$dom=new DOMDocument('1.0', 'UTF-8');
@@ -142,6 +142,26 @@ if ($ac=='shared_note')
echo $dom->saveXML();
return;
}
+ if ($id==0)
+ {
+ ob_start();
+ echo HtmlInput::title_box(_('Liste utilisateurs'), "shared_{$id}");
+ echo '<p class="notice">';
+ echo _("Vous devez d'abord sauver");
+ echo '</p>';
+ echo '<p style="text-align:center">';
+ echo HtmlInput::submit('close'.$id, 'Ferme',"
onclick=\"\$('shared_{$id}').remove();\"");
+ echo '</p>';
+ $result=ob_get_clean();
+ //
+ // output the XML
+ header('Content-type: text/xml; charset=UTF-8');
+ $dom=new DOMDocument('1.0', 'UTF-8');
+ $tl_id=$dom->createElement('content', escape_xml($result));
+ $dom->appendChild($tl_id);
+ echo $dom->saveXML();
+ return;
+ }
$todo=new Todo_List($cn);
$todo->set_parameter("id", $id);
$todo->load();
- [Noalyss-commit] [noalyss] branch master updated (38c52bf -> 255124b), Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 01/30: Task #1118 - Partage de notes via le Pense-bête #1118 : partage de note Correction bug, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 03/30: Merge tag 'rel6803', Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 02/30: Task #1123 - Visualisation/présentation de la balance: SOLDE #1123 : PRINTBAL ajout du solde quand on utilise les sous-niveaux, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 05/30: Icon in the menu, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 06/30: #1118 : partage de note Esthétique Zoom des notes partagées, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 04/30: Icon in the menu, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 07/30: Improve method HtmlInput::title_box, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 08/30: #1118 : partage de note Ne peut partager note non sauvée,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 09/30: #1118 : partage de note Esthétique zoom, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 10/30: Database improve : new function get_affected returns the number of rows affected by the last query, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 13/30: Administration user : add condition if no folder exists + esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 11/30: Remove table priv_user, the local admin and plugin user are obsolete, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 16/30: Administration user : esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 14/30: Administration user : add condition if no folder exists + esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 15/30: Administration user : esthetic + rewrite add user Correct bug : ajax_admin.js, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 17/30: Administration user : esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 18/30: HtmlInput : add a new function to create an empty anchor, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 12/30: Administration user : Add / remove right on folder in ajax, Dany De Bontridder, 2015/06/02