Author: danydb
Date: 2012-06-24 19:04:18 +0200 (Sun, 24 Jun 2012)
New Revision: 4987
Modified:
phpcompta/trunk/html/js/card.js
Log:
Fix bug when create new card
Modified: phpcompta/trunk/html/js/card.js
===================================================================
--- phpcompta/trunk/html/js/card.js 2012-06-24 16:28:47 UTC (rev 4986)
+++ phpcompta/trunk/html/js/card.js 2012-06-24 17:04:18 UTC (rev 4987)
@@ -463,14 +463,15 @@
function dis_blank_card(obj)
{
// first we have to take the form elt we need
- if ( obj.fd_id == undefined ) { var fd_id=$F('fd_id'); }
+ if ( obj.fd_id.value != undefined )
+ { var fd_id=$F('fd_id'); }
else {fd_id=obj.fd_id;}
var ref="";
if ( obj.elements && obj.elements['ref'] )
{
ref='&ref';
- }
+ }
var content='div_new_card';
var nTop=posY-40;
var nLeft=posX-20;
@@ -480,7 +481,7 @@
if ( $(content)) {removeDiv(content);}
add_div(popup);
- if ( obj.gDossier == undefined ) {
+ if ( obj.gDossier.value != undefined ) {
var dossier=$('gDossier').value;} else {
var dossier=obj.gDossier;
}
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev