Commit 673e359d authored by Sven Franck's avatar Sven Franck

Gadgets/Pagination: renamed browser gadget

parent 72011fb6
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
// page gadgets // page gadgets
, address: '../modules/ui/address/address' , address: '../modules/ui/address/address'
, basket: '../modules/ui/basket/basket' , basket: '../modules/ui/basket/basket'
, browser: '../modules/ui/browser/browser' , pagination: '../modules/ui/pagination/pagination'
, confirm: '../modules/ui/confirm/confirm' , confirm: '../modules/ui/confirm/confirm'
, description: '../modules/ui/description/description' , description: '../modules/ui/description/description'
, details: '../modules/ui/details/details' , details: '../modules/ui/details/details'
......
...@@ -28,14 +28,14 @@ ...@@ -28,14 +28,14 @@
<!-- content --> <!-- content -->
<div data-role="content" class="ui-content"> <div data-role="content" class="ui-content">
<!-- browse items --> <!-- pagination -->
<div id="browser" <div id="pagination"
data-gadget="modules/browser/browser.html" data-gadget="modules/pagination/pagination.html"
data-gadget-module="browser" data-gadget-module="pagination"
data-gadget-property='{ data-gadget-property='{
"state": [ "state": [
{ {
"browser": { "pagination": {
"_config": { "_config": {
"datasource": {"module": "storage"} "datasource": {"module": "storage"}
}, },
......
.browser_bar { .pagination_bar {
width: 100%; width: 100%;
display: inline-block; display: inline-block;
text-align: center; text-align: center;
......
...@@ -5,12 +5,11 @@ ...@@ -5,12 +5,11 @@
<title>Browser Module</title> <title>Browser Module</title>
</head> </head>
<body> <body>
<!-- TODO: rename to "pagination" gadget --> <div class="pagination_bar">
<div class="browser_bar">
<div data-role="controlgroup" data-type="horizontal"> <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> <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="pagination.previous">Previous</a>
<a href="products.html" data-role="button" class="translate" data-i18n="browser.back">Back</a> <a href="products.html" data-role="button" class="translate" data-i18n="pagination.back">Back</a>
<a href="details.html?item_id=next" data-icon="arrow-r" data-transition="slide" data-role="button" data-iconpos="notext" class="translate next" data-i18n="browser.next">Next</a> <a href="details.html?item_id=next" data-icon="arrow-r" data-transition="slide" data-role="button" data-iconpos="notext" class="translate next" data-i18n="pagination.next">Next</a>
</div> </div>
</div> </div>
</body> </body>
......
define([ define([
'app' 'app'
, 'text!browser.html!strip' , 'text!pagination.html!strip'
, 'css!browser' , 'css!pagination'
], ],
function (App, source) { function (App, source) {
var priv = {}; var priv = {};
......
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