Commit ff92ee42 authored by Sven Franck's avatar Sven Franck

merge: fixed conflicts

parent 41462f79
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
"initial_query": {"query": "reference: 'product_group'", "include_docs": true, "select_list": ["title", "title_i18n", "_id"]}, "initial_query": {"query": "reference: 'product_group'", "include_docs": true, "select_list": ["title", "title_i18n", "_id"]},
"property_dict": { "property_dict": {
"link": true, "link": true,
"link_identifier": "_id", "link_identifier": "title",
"link_core": "product_module::filter=" "link_core": "product_module::group="
}, },
"scheme": [ "scheme": [
{ {
......
{
"property_dict": {},
"children":[{
"generate": "widget",
"type": "header",
"property_dict": {
"id": "search-header",
"theme": "slapos-black",
"add_content": 0,
"section_list":["last"],
"title": "Categories",
"title_i18n": "global_dict.categories"
},
"children":[{
"type": "a",
"direct": {
"href": "#",
"className": "ui-panel-close ui-icon-remove ui-btn ui-btn-icon-notext ui-shadow ui-corner-all"
},
"attributes": {
"data-enhanced": true,
"data-rel": "close"
},
"logic": {"text": "Close"}
}]
}, {
"generate": "widget",
"type": "listview",
"property_dict": {
"theme": "slapos-white",
"map_children": "listItem"
},
"children": [
{"type": "item", "href": "#products/apparel", "center": {"text": [{"type": "h1","text": "Apparel", "text_i18n":"global_dict.apparel"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/accessories", "center": {"text": [{"type": "h1","text": "Accessories", "text_i18n":"global_dict.accessories"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/shoes", "center": {"text": [{"type": "h1","text": "Shoes", "text_i18n":"global_dict.shoes"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/sales", "center": {"text": [{"type": "h1","text": "Sales", "text_i18n":"global_dict.sales"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/new", "center": {"text":[{"type": "h1", "text": "New Items", "text_i18n": "global_dict.new"}]}, "right": {"check": true}}
]
}
]
}
\ No newline at end of file
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
"map_children": "listItem" "map_children": "listItem"
}, },
"children": [ "children": [
{"type": "item", "href": "#products/sort/latest", "center": [{"type": "h1","text": "Newest Items", "text_i18n":"global_dict.latest"}]}, {"type": "item", "href": "#product_module::sort=date_created,descending", "center": [{"type": "h1","text": "Newest Items", "text_i18n":"global_dict.latest"}]},
{"type": "item", "href": "#products/sort/price_lowest", "center": [{"type": "h1","text": "Lowest Price", "text_i18n":"global_dict.lowest"}]}, {"type": "item", "href": "#product_module::sort=price,descending", "center": [{"type": "h1","text": "Lowest Price", "text_i18n":"global_dict.lowest"}]},
{"type": "item", "href": "#products/sort/price_highest", "center": [{"type": "h1","text": "Highest Price", "text_i18n":"global_dict.highest"}]} {"type": "item", "href": "#product_module::sort=price,ascending", "center": [{"type": "h1","text": "Highest Price", "text_i18n":"global_dict.highest"}]}
] ]
} }
] ]
......
...@@ -4762,6 +4762,7 @@ ...@@ -4762,6 +4762,7 @@
} }
if ((start > total && total !== undefined) || start < 0) { if ((start > total && total !== undefined) || start < 0) {
console.log("DONE")
return; return;
} }
...@@ -4772,10 +4773,14 @@ ...@@ -4772,10 +4773,14 @@
if (config.state.selected) { if (config.state.selected) {
config.state.selected = []; config.state.selected = [];
} }
console.log("fertig")
console.log("let's set content")
console.log(config)
// update gadget // update gadget
app.content.set( app.content.set(
{}, {
"portal_type_source": config.state.type
},
{ {
"reference": config.id, "reference": config.id,
"href": config.state.href, "href": config.state.href,
...@@ -5003,7 +5008,6 @@ ...@@ -5003,7 +5008,6 @@
"gadget": document.getElementById(id) "gadget": document.getElementById(id)
}; };
has_form = response.gadget.getElementsByTagName("form"); has_form = response.gadget.getElementsByTagName("form");
console.log(e);
return util.mergeObject( return util.mergeObject(
{ {
"form": has_form ? has_form[0] : undefined, "form": has_form ? has_form[0] : undefined,
...@@ -5850,7 +5854,7 @@ ...@@ -5850,7 +5854,7 @@
// TODO: find better way to determine "value" // TODO: find better way to determine "value"
app.content.total = function (reply) { app.content.total = function (reply) {
var pass = reply.pass, last; var pass = reply.pass, last;
console.log("total=?")
if (!pass.skip) { if (!pass.skip) {
//pass.data_dict.field_dict = util.parse(reply.response); //pass.data_dict.field_dict = util.parse(reply.response);
...@@ -5927,7 +5931,8 @@ ...@@ -5927,7 +5931,8 @@
**/ **/
app.content.query = function (reply) { app.content.query = function (reply) {
var pass = reply.pass; var pass = reply.pass;
console.log("query?")
console.log(pass)
if (!pass.skip) { if (!pass.skip) {
// set total rows // set total rows
...@@ -5994,6 +5999,8 @@ ...@@ -5994,6 +5999,8 @@
encoded, wrapper, active, selector, update_target, target, encoded, wrapper, active, selector, update_target, target,
grant_child, quirk_dict, generator, pointer_results, data_total_rows; grant_child, quirk_dict, generator, pointer_results, data_total_rows;
console.log("REACHED MAKE")
console.log(reply.pass)
pass = reply.pass; pass = reply.pass;
pass.config_dict = pass.config_dict || {}; pass.config_dict = pass.config_dict || {};
type = pass.content_dict.type; type = pass.content_dict.type;
...@@ -6167,6 +6174,8 @@ ...@@ -6167,6 +6174,8 @@
} }
} }
console.log(pointer_results)
console.log(kids)
// loop over children // loop over children
if (kids.length) { if (kids.length) {
...@@ -6276,7 +6285,9 @@ ...@@ -6276,7 +6285,9 @@
return RSVP.all(promise_list) return RSVP.all(promise_list)
.then(function (response_list) { .then(function (response_list) {
var k, l, done_target, wrapper_selector, response, content; var k, l, target, wrapper_selector, response, content;
console.log("DONE")
console.log(promise_list)
for (k = 0, l = response_list.length; k < l; k += 1) { for (k = 0, l = response_list.length; k < l; k += 1) {
response = response_list[k]; response = response_list[k];
...@@ -6499,18 +6510,25 @@ ...@@ -6499,18 +6510,25 @@
* @return {string} href * @return {string} href
*/ */
app.util.generateLink = function (spec, id) { app.util.generateLink = function (spec, id) {
var level, core; var level, core, separator;
// external link
if (spec.source) { if (spec.source) {
return spec.source; return spec.source;
} }
// link current segment parameter vs segment
if (spec.link_core.split("::").length > 1) {
separator = "";
} else {
separator = "/";
}
level = spec.layout_level || 0; level = spec.layout_level || 0;
core = spec.link_core || (spec.fragment_list ? core = spec.link_core || (spec.fragment_list ?
spec.fragment_list.slice(0, level + 1).join("/") : ""); spec.fragment_list.slice(0, level + 1).join("/") : "");
return ("#" + core + "/" + window.encodeURIComponent(id) return ("#" + core + separator + window.encodeURIComponent(id));
);
}; };
/** /**
......
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