Extracted pager from paged collection presenter

This commit is contained in:
Marcin Kurczewski
2014-10-01 22:18:50 +02:00
parent c124f89b8b
commit 14325b4338
6 changed files with 189 additions and 98 deletions

View File

@ -42,10 +42,9 @@ App.Util = function(_, jQuery, promise) {
function compileComplexRouteArgs(baseUri, args) {
var result = baseUri + '/';
_.each(args, function(v, k) {
if (typeof(v) === 'undefined') {
return;
if (typeof(v) !== 'undefined') {
result += k + '=' + v + ';';
}
result += k + '=' + v + ';';
});
result = result.slice(0, -1);
return result;