fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [8933] property: fix inline datatable update


From: Sigurd Nes
Subject: [Fmsystem-commits] [8933] property: fix inline datatable update
Date: Mon, 20 Feb 2012 14:58:57 +0000

Revision: 8933
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8933
Author:   sigurdne
Date:     2012-02-20 14:58:57 +0000 (Mon, 20 Feb 2012)
Log Message:
-----------
property: fix inline datatable update

Modified Paths:
--------------
    trunk/property/js/yahoo/property2.js
    trunk/property/js/yahoo/uis_agreement.edit.js
    trunk/property/js/yahoo/uisagreement.index.js
    trunk/property/templates/base/s_agreement.xsl

Modified: trunk/property/js/yahoo/property2.js
===================================================================
--- trunk/property/js/yahoo/property2.js        2012-02-20 14:38:33 UTC (rev 
8932)
+++ trunk/property/js/yahoo/property2.js        2012-02-20 14:58:57 UTC (rev 
8933)
@@ -529,18 +529,13 @@
 
        this.execute_async = function(datatable, incoming_url)
        {
-               if(incoming_url !='undfined')
+               if(typeof(incoming_url) != 'undefined')
                {
                        base_java_url = incoming_url;
                }
-               try     {
-                               ds = phpGWLink('index.php',base_java_url,true);
-                               //ds = url;
-                       }
-               catch(e)
-                       {
-                               alert(e);
-                       }
+
+               ds = phpGWLink('index.php',base_java_url,true);
+               
                var callback =
                {
                        success: function(o)

Modified: trunk/property/js/yahoo/uis_agreement.edit.js
===================================================================
--- trunk/property/js/yahoo/uis_agreement.edit.js       2012-02-20 14:38:33 UTC 
(rev 8932)
+++ trunk/property/js/yahoo/uis_agreement.edit.js       2012-02-20 14:58:57 UTC 
(rev 8933)
@@ -139,7 +139,6 @@
                                break;
                        }
                }
-
                if(flag)
                {
                        //asign value to hidden
@@ -149,7 +148,6 @@
                        YAHOO.util.Connect.setForm(formObject[3]);
                        execute_async(myDataTable_1);
                }
-
        }
 
 
/********************************************************************************/

Modified: trunk/property/js/yahoo/uisagreement.index.js
===================================================================
--- trunk/property/js/yahoo/uisagreement.index.js       2012-02-20 14:38:33 UTC 
(rev 8932)
+++ trunk/property/js/yahoo/uisagreement.index.js       2012-02-20 14:58:57 UTC 
(rev 8933)
@@ -54,13 +54,11 @@
                                oMenuButton_1.set("label", ("<em>" + 
array_options[1][index][1] + "</em>"));
                        }
                        index = 
locate_in_array_options(2,"value",path_values.vendor_id);
-console.log(index);
                        if(index)
                        {
                                oMenuButton_2.set("label", ("<em>" + 
array_options[2][index][1] + "</em>"));
                        }
                        index = 
locate_in_array_options(3,"value",path_values.status_id);
-console.log(path_values);
                        if(index)
                        {
                                oMenuButton_3.set("label", ("<em>" + 
array_options[3][index][1] + "</em>"));

Modified: trunk/property/templates/base/s_agreement.xsl
===================================================================
--- trunk/property/templates/base/s_agreement.xsl       2012-02-20 14:38:33 UTC 
(rev 8932)
+++ trunk/property/templates/base/s_agreement.xsl       2012-02-20 14:58:57 UTC 
(rev 8933)
@@ -613,11 +613,9 @@
                                                                <div 
id="contextmenu_1"/>
                                                                <div 
style="height:15px;"/>
                                                                <div 
id="datatable-buttons_2" class="div-buttons">
-                                                                       <input 
type="text" id="values_date" class="calendar-opt" name="values[date]" size="10" 
value="{date}" readonly="readonly" onMouseout="window.status='';return true;">
-                                                                               
<xsl:attribute name="onMouseover">
-                                                                               
        <xsl:text>window.status='</xsl:text>
+                                                                       <input 
type="text" id="values_date" class="calendar-opt" name="values[date]" size="10" 
value="{date}" readonly="readonly">
+                                                                               
<xsl:attribute name="title">
                                                                                
        <xsl:value-of select="lang_date_statustext"/>
-                                                                               
        <xsl:text>'; return true;</xsl:text>
                                                                                
</xsl:attribute>
                                                                        </input>
                                                                        <img 
id="values_date-trigger" class="calendar-opt" src="{img_cal}" 
alt="{lang_datetitle}" title="{lang_datetitle}" style="cursor:pointer; 
cursor:hand;"/>




reply via email to

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