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
955850fd
Commit
955850fd
authored
May 01, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data/app: added sorting links to side panel
parent
4ad1a770
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
data/ui_panel_sort.json
data/ui_panel_sort.json
+3
-3
js/erp5_loader.js
js/erp5_loader.js
+3
-3
No files found.
data/ui_panel_sort.json
View file @
955850fd
...
...
@@ -29,9 +29,9 @@
"map_children"
:
"listItem"
},
"children"
:
[
{
"type"
:
"item"
,
"href"
:
"#product_module
::sort=date_created,
descending"
,
"center"
:
[{
"type"
:
"h1"
,
"text_i18n"
:
"global_dict.latest"
}]},
{
"type"
:
"item"
,
"href"
:
"#product_module
::sort=price,
descending"
,
"center"
:
[{
"type"
:
"h1"
,
"text_i18n"
:
"global_dict.lowest"
}]},
{
"type"
:
"item"
,
"href"
:
"#product_module
::sort=price,
ascending"
,
"center"
:
[{
"type"
:
"h1"
,
"text_i18n"
:
"global_dict.highest"
}]}
{
"type"
:
"item"
,
"href"
:
"#product_module
&sort:date_created=
descending"
,
"center"
:
[{
"type"
:
"h1"
,
"text_i18n"
:
"global_dict.latest"
}]},
{
"type"
:
"item"
,
"href"
:
"#product_module
&sort:price=
descending"
,
"center"
:
[{
"type"
:
"h1"
,
"text_i18n"
:
"global_dict.lowest"
}]},
{
"type"
:
"item"
,
"href"
:
"#product_module
&sort:price=
ascending"
,
"center"
:
[{
"type"
:
"h1"
,
"text_i18n"
:
"global_dict.highest"
}]}
]
}
]
...
...
js/erp5_loader.js
View file @
955850fd
...
...
@@ -7149,11 +7149,11 @@
* @return {string} href
*/
app
.
util
.
generateLink
=
function
(
spec
,
id
)
{
var
level
,
core
,
separator
,
empty_string
,
is_core
,
has_
query
,
has_depth
;
var
level
,
core
,
separator
,
empty_string
,
is_core
,
has_
param
,
has_depth
;
empty_string
=
""
;
is_core
=
spec
.
link_core
||
empty_string
;
has_
query
=
is_core
.
split
(
"
query:
"
).
length
>
1
;
has_
param
=
is_core
.
split
(
"
&
"
).
length
>
1
;
has_depth
=
is_core
.
split
(
"
%26
"
).
length
>
1
;
// external link
...
...
@@ -7162,7 +7162,7 @@
}
// TODO: not robust
if
(
has_
query
||
has_depth
)
{
if
(
has_
param
||
has_depth
)
{
separator
=
empty_string
;
}
else
{
separator
=
"
/
"
;
...
...
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