Fixed with js crap:
jQuery.fn.zfGet = function() {
var tokens = this.serialize().split('&');
var url = this.attr('action');
var params = {};
for (var i = 0; i < tokens.length; i++) {
var tmp = tokens[i].split('=');
if (-1 != tmp[0].indexOf('%5B') /*&& '' != tmp[1]*/) {
url = url + '/' + tmp[0] + '/' + tmp[1];
}else {
params[tmp[0]] = tmp[1];
}
}
$.each(params, function(k, v) {
if ('' != v) {
url = url + '/' + k + '/' + v;
}
});
window.location = url;
return false;
};
Is this mess really necesarry?
--
View this message in context:
http://n4.nabble.com/Problem-with-Zend-Form-Element-Checkbox-and-zf-style-urls-tp1099915p1288860.html
Sent from the Zend Framework mailing list archive at Nabble.com.