fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10905] Deleted function view_cases_for_check_list


From: Torstein
Subject: [Fmsystem-commits] [10905] Deleted function view_cases_for_check_list
Date: Sun, 17 Feb 2013 19:45:18 +0000

Revision: 10905
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10905
Author:   vator
Date:     2013-02-17 19:45:17 +0000 (Sun, 17 Feb 2013)
Log Message:
-----------
Deleted function view_cases_for_check_list

Modified Paths:
--------------
    trunk/controller/js/controller/case.js
    
trunk/controller/templates/base/check_list/fragments/select_buildings_on_property.xsl

Modified: trunk/controller/js/controller/case.js
===================================================================
--- trunk/controller/js/controller/case.js      2013-02-17 18:49:40 UTC (rev 
10904)
+++ trunk/controller/js/controller/case.js      2013-02-17 19:45:17 UTC (rev 
10905)
@@ -257,14 +257,10 @@
   
   $("#choose-building-on-property.view-cases").change(function () {
      var location_code = $(this).val();
-                var thisForm = $(this).closest("form");
 
-     var url = location.href;
-console.log(url);
-     
-                
$(thisForm).find("input[name='location_code']").val(location_code);
-     console.log(location_code);
-    $(thisForm).submit();
+     var reloadPageUrl = location.pathname + location.search + 
"&location_code=" + location_code;
+
+     location.href = reloadPageUrl;
     });
   
 });

Modified: 
trunk/controller/templates/base/check_list/fragments/select_buildings_on_property.xsl
===================================================================
--- 
trunk/controller/templates/base/check_list/fragments/select_buildings_on_property.xsl
       2013-02-17 18:49:40 UTC (rev 10904)
+++ 
trunk/controller/templates/base/check_list/fragments/select_buildings_on_property.xsl
       2013-02-17 19:45:17 UTC (rev 10905)
@@ -1,22 +1,17 @@
 <!-- $Id: view_calendar_month.xsl 9200 2012-04-21 20:05:34Z vator $ -->
 <xsl:template name="select_buildings_on_property">
-               
-  <form action="#" method="GET" runat="server">
-    <input type="hidden" name="location_code" value="" />
-       
-    <select id="choose-building-on-property" class="view-cases">
-      <option value="">Velg bygg</option>
-      <xsl:for-each select="buildings_on_property">
-        <option>
-          <xsl:if test="id = //building_location_code">
-            <xsl:attribute name="selected">selected</xsl:attribute>
-          </xsl:if>
-          <xsl:attribute name="value">
-            <xsl:value-of select="id"/>
-          </xsl:attribute>
-          <xsl:value-of select="name" />
-        </option>
-      </xsl:for-each>
-    </select>                                  
-  </form>
+  <select id="choose-building-on-property" class="view-cases">
+    <option value="">Velg bygg</option>
+    <xsl:for-each select="buildings_on_property">
+      <option>
+        <xsl:if test="id = //building_location_code">
+          <xsl:attribute name="selected">selected</xsl:attribute>
+        </xsl:if>
+        <xsl:attribute name="value">
+          <xsl:value-of select="id"/>
+        </xsl:attribute>
+        <xsl:value-of select="name" />
+      </option>
+    </xsl:for-each>
+  </select>                                    
 </xsl:template>




reply via email to

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