fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7801]


From: Torstein
Subject: [Fmsystem-commits] [7801]
Date: Tue, 04 Oct 2011 08:31:57 +0000

Revision: 7801
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7801
Author:   vator
Date:     2011-10-04 08:31:57 +0000 (Tue, 04 Oct 2011)
Log Message:
-----------


Modified Paths:
--------------
    trunk/rental/js/rental/common.js

Modified: trunk/rental/js/rental/common.js
===================================================================
--- trunk/rental/js/rental/common.js    2011-10-04 08:26:17 UTC (rev 7800)
+++ trunk/rental/js/rental/common.js    2011-10-04 08:31:57 UTC (rev 7801)
@@ -264,13 +264,14 @@
                'click',
                function(){             
                        
-                       var org_enhet_id = 
document.getElementById('org_enhet_id').value;
+                       var org_enhet_id = null;
+                       org_enhet_id = 
document.getElementById('org_enhet_id').value;
                        
-                       // User must select an org unit from option list 
-                       if( org_enhet_id > 0){                  
-                        YAHOO.util.Connect.asyncRequest (
+                       // User must select an org unit from option list
+                       if( org_enhet_id == null){                      
+                               YAHOO.util.Connect.asyncRequest (
                                'POST',
-                               
"http://portico/pe/index.php?menuaction=rental.uiparty.get_synchronize_party_info&phpgw_return_as=json&org_enhet_id=";
 + org_enhet_id,
+                               
"index.php?menuaction=rental.uiparty.get_synchronize_party_info&phpgw_return_as=json&org_enhet_id="
 + org_enhet_id,
                                {
                                        success: syncInfo,
                                        failure: function (o) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]