fix bugs in map and url controller

This commit is contained in:
rlx 2011-10-08 18:35:33 +00:00
parent 2e9c22aa6d
commit 19cb033bdc
2 changed files with 3 additions and 0 deletions

View file

@ -296,6 +296,7 @@ Ox.URL = function(options) {
} }
function parseCondition(str) { function parseCondition(str) {
Ox.print('PARSE COND', str)
var condition = {}, var condition = {},
operators = ['!==', '==', '!=', '=', '!<', '<', '!>', '>'], operators = ['!==', '==', '!=', '=', '!<', '<', '!>', '>'],
split; split;
@ -350,6 +351,7 @@ Ox.URL = function(options) {
} }
function parseFind(str) { function parseFind(str) {
str = str.replace(/%7C/g, '|');
var conditions, counter = 0, var conditions, counter = 0,
find = {conditions: [], operator: '&'}, find = {conditions: [], operator: '&'},
subconditions = []; subconditions = [];

View file

@ -1166,6 +1166,7 @@ Ox.Map = function(options, self) {
}; };
function submitFind(data) { function submitFind(data) {
self.options.find = data.value;
that.findPlace(data.value, function(place) { that.findPlace(data.value, function(place) {
setStatus(place); setStatus(place);
}); });