summaryrefslogtreecommitdiff
path: root/templates/chimere/blocks/map.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/chimere/blocks/map.html')
-rw-r--r--templates/chimere/blocks/map.html80
1 files changed, 47 insertions, 33 deletions
diff --git a/templates/chimere/blocks/map.html b/templates/chimere/blocks/map.html
index 6273576..037d5a8 100644
--- a/templates/chimere/blocks/map.html
+++ b/templates/chimere/blocks/map.html
@@ -35,11 +35,46 @@ $(function(){
}, false);
}
};
+ $('#sidebar-handler-hide').click(function(){
+ $('#sidebar').hide();
+ // Added for mobile - START //
+ //iOS
+ connectWebViewJavascriptBridge(
+ function(bridge) {
+ if(!bridge){
+ bridge.init(function(message, responseCallback) {
+ if (responseCallback) {
+ responseCallback("Right back atcha");
+ }
+ });
+ }
+ bridge.send('sidebarHide');
+ });
+ });
+ $('#sidebar-handler-show').click(function(){
+ $('#sidebar').show();
+ // Added for mobile - START //
+ //iOS
+ connectWebViewJavascriptBridge(
+ function(bridge) {
+ if(!bridge){
+ bridge.init(function(message, responseCallback) {
+ if (responseCallback) {
+ responseCallback("Right back atcha");
+ }
+ });
+ }
+ bridge.send('sidebarShow');
+ });
+
+ });
//fin lib ios
var routing_panel_open = function(){
$('#frm_categories').hide();
+ $('#search-box').hide();
$('#chimere_itinerary_panel').show();
$('#action-categories').removeClass('state-active');
+ $('#action-search').removeClass('state-active');
$('#action-routing').addClass('state-active');
};
@@ -47,46 +82,25 @@ $(function(){
var category_panel_open = function(){
$('#chimere_itinerary_panel').hide();
+ $('#search-box').hide();
$('#frm_categories').show();
$('#action-routing').removeClass('state-active');
+ $('#action-search').removeClass('state-active');
$('#action-categories').addClass('state-active');
};
$('#action-categories').click(category_panel_open);
- $('#sidebar-handler-hide').click(function(){
- $('#sidebar').hide();
- // Added for mobile - START //
- //iOS
- connectWebViewJavascriptBridge(
- function(bridge) {
- if(!bridge){
- bridge.init(function(message, responseCallback) {
- if (responseCallback) {
- responseCallback("Right back atcha");
- }
- });
- }
- bridge.send('sidebarHide');
- });
- });
- $('#sidebar-handler-show').click(function(){
- $('#sidebar').show();
- // Added for mobile - START //
- //iOS
- connectWebViewJavascriptBridge(
- function(bridge) {
- if(!bridge){
- bridge.init(function(message, responseCallback) {
- if (responseCallback) {
- responseCallback("Right back atcha");
- }
- });
- }
- bridge.send('sidebarShow');
- });
-
- });
+ var search_panel_open = function(){
+ $('#chimere_itinerary_panel').hide();
+ $('#frm_categories').hide();
+ $('#search-box').show();
+ $('#action-routing').removeClass('state-active');
+ $('#action-categories').removeClass('state-active');
+ $('#action-search').addClass('state-active');
+ };
+
+ $('#action-search').click(search_panel_open);
{% if single_category %}
$(function() {$('#panel').hide()});{% endif %}