From 19cb033bdcfe4ec326e05f57835600d97f8026d3 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 8 Oct 2011 18:35:33 +0000 Subject: [PATCH] fix bugs in map and url controller --- source/Ox.UI/js/Core/Ox.URL.js | 2 ++ source/Ox.UI/js/Map/Ox.Map.js | 1 + 2 files changed, 3 insertions(+) diff --git a/source/Ox.UI/js/Core/Ox.URL.js b/source/Ox.UI/js/Core/Ox.URL.js index b6b3ea4e..d7754a33 100644 --- a/source/Ox.UI/js/Core/Ox.URL.js +++ b/source/Ox.UI/js/Core/Ox.URL.js @@ -296,6 +296,7 @@ Ox.URL = function(options) { } function parseCondition(str) { + Ox.print('PARSE COND', str) var condition = {}, operators = ['!==', '==', '!=', '=', '!<', '<', '!>', '>'], split; @@ -350,6 +351,7 @@ Ox.URL = function(options) { } function parseFind(str) { + str = str.replace(/%7C/g, '|'); var conditions, counter = 0, find = {conditions: [], operator: '&'}, subconditions = []; diff --git a/source/Ox.UI/js/Map/Ox.Map.js b/source/Ox.UI/js/Map/Ox.Map.js index 306caa6e..5eeb5754 100644 --- a/source/Ox.UI/js/Map/Ox.Map.js +++ b/source/Ox.UI/js/Map/Ox.Map.js @@ -1166,6 +1166,7 @@ Ox.Map = function(options, self) { }; function submitFind(data) { + self.options.find = data.value; that.findPlace(data.value, function(place) { setStatus(place); });