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
355d2a9a
Commit
355d2a9a
authored
Jul 31, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gadgets/Browser: added jio sorting criteria for prev/next button
parent
ee278413
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
modules/ui/browser/browser.html
modules/ui/browser/browser.html
+1
-0
modules/ui/browser/browser.js
modules/ui/browser/browser.js
+3
-1
No files found.
modules/ui/browser/browser.html
View file @
355d2a9a
...
...
@@ -5,6 +5,7 @@
<title>
Browser Module
</title>
</head>
<body>
<!-- TODO: rename to "pagination" gadget -->
<div
class=
"browser_bar"
>
<div
data-role=
"controlgroup"
data-type=
"horizontal"
>
<a
href=
"details.html?item_id=prev"
data-icon=
"arrow-l"
data-transition=
"slide"
data-direction=
"reverse"
data-role=
"button"
data-iconpos=
"notext"
class=
"translate prev"
data-i18n=
"browser.previous"
>
Previous
</a>
...
...
modules/ui/browser/browser.js
View file @
355d2a9a
...
...
@@ -50,7 +50,9 @@ define([
spec
.
pointer
=
config
.
datasource
.
pointer
;
spec
.
method
=
spec
.
pointer
?
undefined
:
config
.
datasource
.
method
||
"
allDocs
"
;
spec
.
storage
=
spec
.
pointer
?
undefined
:
config
.
datasource
.
storage
||
"
items
"
;
// no options
spec
.
options
=
spec
.
pointer
?
undefined
:
config
.
datasource
.
options
||
{
"
sort_on
"
:
[[
"
_id
"
,
"
ascending
"
]]
}
spec
.
callback
=
function
(
err
,
response
)
{
var
currentId
=
location
.
href
.
split
(
"
?
"
)[
1
].
split
(
"
=
"
)[
1
],
...
...
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