Commit 54ed3ab3 authored by Sven Franck's avatar Sven Franck

General: cleanup

parent 23936633
...@@ -163,7 +163,6 @@ define([ ...@@ -163,7 +163,6 @@ define([
}; };
if (urlPointer) { if (urlPointer) {
// query for items
App[module].switchboard(spec); App[module].switchboard(spec);
} }
} }
......
...@@ -61,7 +61,7 @@ define([ ...@@ -61,7 +61,7 @@ define([
// generate results // generate results
for (i = 0; i < response.total_rows; i += 1) { for (i = 0; i < response.total_rows; i += 1) {
item = response.rows[i].value; item = response.rows[i].value;
console.log(item);
if (item.price === item.original_price) { if (item.price === item.original_price) {
price = item.price + item.currency; price = item.price + item.currency;
} else { } else {
......
...@@ -71,7 +71,6 @@ define([ ...@@ -71,7 +71,6 @@ define([
if (err) { if (err) {
} else { } else {
console.log(response);
// set next // set next
// TODO: this is bad, because we can only point to doc_id, no matter what // TODO: this is bad, because we can only point to doc_id, no matter what
// identifier we are setting. item_id itself is... bad... fix! // identifier we are setting. item_id itself is... bad... fix!
...@@ -81,7 +80,6 @@ define([ ...@@ -81,7 +80,6 @@ define([
markup = params.source.replace("translate next", "translate next ui-state-disabled"); markup = params.source.replace("translate next", "translate next ui-state-disabled");
} else { } else {
markup = params.source.replace(identifier + "=next", identifier + "=" + next); markup = params.source.replace(identifier + "=next", identifier + "=" + next);
console.log(markup)
} }
// set previous // set previous
prev = priv.getPrevNextItem(response.rows, currentId, false, response.total_rows); prev = priv.getPrevNextItem(response.rows, currentId, false, response.total_rows);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment