Skip to content

Commit 7ee4692

Browse files
committed
fixed #132 - busca com acentuacao correta & apagando alguns logs
1 parent 24d1118 commit 7ee4692

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/django-bbx/bbx/static/js/modules/media/functions.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ define([
6363
if (_.isArray(tags)) {
6464
tags = tags.join('/');
6565
}
66-
console.log(tags);
67-
66+
6867
// remove last and first char if is a /
6968
tags = (tags[tags.length -1] === '/') ? tags.substring(0, tags.length -1) : tags;
7069
while (tags[0] === '/') {
@@ -85,8 +84,7 @@ define([
8584
url_is_search = false,
8685
url_is_gallery = false,
8786
tags = [],
88-
current_url = Backbone.history.fragment;
89-
87+
current_url = decodeURI(Backbone.history.fragment);
9088

9189
url_is_search = current_url.indexOf('bbx/search');
9290
url_is_gallery = current_url.indexOf('gallery');
@@ -495,7 +493,6 @@ define([
495493
};
496494

497495
$(function () {
498-
console.log(el)
499496
$(el + ' a').tagcloud();
500497
});
501498

@@ -812,7 +809,6 @@ define([
812809
urlApi = urlApi || BBX.config.apiUrl + '/' + BBX.config.repository + '/' + BBX.config.mucua + '/bbx/search/';
813810

814811
console.log('change media limit');
815-
console.log(urlApi);
816812
if (url.match('limit')) {
817813
url = url.split('/limit')[0];
818814
} else {

0 commit comments

Comments
 (0)