fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13113]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13113]
Date: Wed, 29 Apr 2015 22:02:37 +0000

Revision: 13113
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13113
Author:   nelson224
Date:     2015-04-29 22:02:36 +0000 (Wed, 29 Apr 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/property/inc/class.uilocation.inc.php

Modified: branches/dev-syncromind/property/inc/class.uilocation.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uilocation.inc.php       
2015-04-29 22:02:15 UTC (rev 13112)
+++ branches/dev-syncromind/property/inc/class.uilocation.inc.php       
2015-04-29 22:02:36 UTC (rev 13113)
@@ -860,8 +860,8 @@
                                $lookup_list    = 
$GLOBALS['phpgw']->session->appsession('lookup_name','property');
                                $function_msg   = $lookup_list[$lookup_name];
                        // for POP-UPs
-                               //$input_name           = 
phpgwapi_cache::session_get('property', 'lookup_fields');
-                               $input_name = array();
+                               $input_name             = 
phpgwapi_cache::session_get('property', 'lookup_fields');
+                               //$input_name = array();
                                $function_exchange_values = <<<JS
 
                                $(document).ready(function() {
@@ -876,8 +876,11 @@
                                        for ($k=0;$k<count($input_name);$k++)
                                        {
                                                $function_exchange_values .= 
<<<JS
-
-                                               
parent.document.getElementsByName("{$input_name[$k]}")[0].value = "";
+                                                               
+                                               if 
(parent.document.getElementsByName("{$input_name[$k]}").length > 0) 
+                                               {                               
                                
+                                                       
parent.document.getElementsByName("{$input_name[$k]}")[0].value = "";
+                                               }
 JS;
                                        }
                                }
@@ -896,7 +899,7 @@
 
                                $function_exchange_values .=<<<JS
 
-                               parent.TINY.box.hide();
+                               parent.JqueryPortico.onPopupClose("close");
 
                        });
 




reply via email to

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