Commit 95c4c700 authored by Sven Franck's avatar Sven Franck

app: removed custom actions

parent f9936039
......@@ -2984,57 +2984,6 @@
// content.set..., no need for dynamic content and pointer
map.actions = {
"custom_checkbox_search": function (obj) {
var form_check_list, i, check_len, check, value_str, target;
// TODO: checkbox-listview should be child of form. This requires
// inheriting dynamic data, which still does not work... !
// TODO: find better way to set the key to search, if possible not
// on the checkbox unless it's easy to set and get!!!
target = obj.element.getAttribute("data-column");
// HM
form_check_list = obj.element.parentNode.parentNode.parentNode
.getElementsByTagName("ul")[0].getElementsByTagName("input");
value_str = "";
for (i = 0, check_len = form_check_list.length; i < check_len; i += 1) {
check = form_check_list[i];
if (check.type = "checkbox" && check.checked) {
value_str += target + "=" + check.id.split("select_")[1] + "|";
}
}
$.mobile.changePage(
"#" + window.encodeURIComponent(
"product_module&query:" + value_str.slice(0,-1)
)
);
},
"custom_search": function (obj) {
$.mobile.changePage(
"#" + window.encodeURIComponent(
"product_module&value:" + obj.element.value
)
);
},
"set_search": function (obj) {
factory.util.setDynamicPointer(obj, "ui_panel_detail_search");
},
"set_filter": function (obj) {
factory.util.setDynamicPointer(obj, "ui_panel_groups");
},
"set_sorting": function (obj) {
factory.util.setDynamicPointer(obj, "ui_panel_sort");
},
"set_sales": function (obj) {
factory.util.setDynamicPointer(obj, "ui_panel_sales");
},
/**
* POST an object
* @method new
......
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