[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/11: Task #1204 - CFGSTOCK : modification
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/11: Task #1204 - CFGSTOCK : modification dépôt #1204 : CFGSTOCK div plus petit , correction bug |
Date: |
Thu, 05 Nov 2015 10:21:08 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit a43ed596efa816106cd274c414f6b1f9e843066e
Author: Dany De Bontridder <address@hidden>
Date: Wed Nov 4 11:11:06 2015 +0100
Task #1204 - CFGSTOCK : modification dépôt
#1204 : CFGSTOCK div plus petit , correction bug
---
html/js/scripts.js | 8 +++++---
include/ajax/ajax_mod_stock_repo.php | 4 ++--
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/html/js/scripts.js b/html/js/scripts.js
index 2550c20..a07b10e 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -1856,14 +1856,16 @@ function set_action_related(p_obj)
}
}
/**
- address@hidden change a document_modele
+ address@hidden Show a form to modify or add a new repository
+ address@hidden p_dossier
+ address@hidden r_id : repository id
*/
function stock_repo_change(p_dossier, r_id)
{
var queryString = "gDossier=" + p_dossier + "&op=mod_stock_repo" +
"&r_id=" + r_id;
var nTop = calcy(posY);
- var nLeft = "200px";
- var str_style = "top:" + nTop + "px;left:" + nLeft + ";height:auto";
+ var nLeft = "10.1562%";
+ var str_style = "top:" + nTop + "px;left:" + nLeft +
";height:auto;width:auto";
removeDiv('change_stock_repo_div');
waiting_box();
diff --git a/include/ajax/ajax_mod_stock_repo.php
b/include/ajax/ajax_mod_stock_repo.php
index 12a9ed5..f3e0359 100644
--- a/include/ajax/ajax_mod_stock_repo.php
+++ b/include/ajax/ajax_mod_stock_repo.php
@@ -27,8 +27,8 @@
*/
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once NOALYSS_INCLUDE.'/database/class_stock_sql.php';
-$st=new Stock_Sql($_GET['r_id']);
-
+$cn=Dossier::connect();
+$st=new Stock_Sql($cn,$_GET['r_id']);
?>
<?php echo HtmlInput::title_box("Ajouter un
dépôt","change_stock_repo_div","close")?>
<form method="post">
- [Noalyss-commit] [noalyss] branch master updated (869c1c0 -> 7cd92de), Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 01/11: Task #1204 - CFGSTOCK : modification dépôt #1204 : CFGSTOCK div plus petit , correction bug,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 04/11: Task #1202 - CFGACC : apparition d'un popup bloquant #1202 : apparation popup bloquant du à IPoste::popup (obsolete), Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 05/11: Task #1201 - Période comptable n'est pas au bon endroit #1201 : période comptable mal placé, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 06/11: #1200 : nettoyage modèle, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 09/11: translate, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 02/11: Use NOALYSS_TEMPLATE instead of NOALYSS_INCLUDE."/template", Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 10/11: Show template status : not existing , nothing or invalid, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 07/11: Task #1206 - ADMINISTRATION MODELE #1206 : change description, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 08/11: Task #1207 - Administration MODELE #1207 : permet d'effacer des modèles vides, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 11/11: Task #1198 - Ajout heure pour nouvel événement #1198 : add hour for event, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 03/11: Task #1203 - CFGPCMN : ajout de poste comptable #1203 : CFGPCMN améliore apparence et taille, Dany De Bontridder, 2015/11/05