Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
95c4c700
Commit
95c4c700
authored
May 06, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: removed custom actions
parent
f9936039
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
51 deletions
+0
-51
js/erp5_loader.js
js/erp5_loader.js
+0
-51
No files found.
js/erp5_loader.js
View file @
95c4c700
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment