fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14639] more on bookingfrontend


From: Sigurd Nes
Subject: [Fmsystem-commits] [14639] more on bookingfrontend
Date: Wed, 13 Jan 2016 12:04:39 +0000

Revision: 14639
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14639
Author:   sigurdne
Date:     2016-01-13 12:04:34 +0000 (Wed, 13 Jan 2016)
Log Message:
-----------
more on bookingfrontend

Modified Paths:
--------------
    branches/dev-syncromind/bookingfrontend/js/bookingfrontend/search.js

Modified: branches/dev-syncromind/bookingfrontend/js/bookingfrontend/search.js
===================================================================
--- branches/dev-syncromind/bookingfrontend/js/bookingfrontend/search.js        
2016-01-13 11:49:27 UTC (rev 14638)
+++ branches/dev-syncromind/bookingfrontend/js/bookingfrontend/search.js        
2016-01-13 12:04:34 UTC (rev 14639)
@@ -23,7 +23,7 @@
 
        });
        $("#search_type :checkbox").on('click', function () {
-               update_search(selected_criteria);
+               update_search(selected_criteria, true);
 
        });
        //initate autocomplete;
@@ -94,10 +94,12 @@
                }
 
        }
-       update_search = function (selected_criteria) {
+       update_search = function (selected_criteria, keep_building) {
 
                var criteria = [];
 
+               var keep_building_for_now = keep_building || false;
+
                for (var i = 0; i < selected_criteria.length; ++i)
                {
                        criteria.push(selected_criteria[i].original);
@@ -105,8 +107,11 @@
 //             console.log(criteria);
 
                part_of_towns = [];
-               $('#field_building_id').val('');
-               $("#field_building_name").val('');
+               if(!keep_building_for_now)
+               {
+                       $('#field_building_id').val('');
+                       $("#field_building_name").val('');
+               }
                $("#part_of_town :checkbox:checked").each(function () {
                        part_of_towns.push($(this).val());
                });




reply via email to

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