Commit 1a9ece02 authored by Roque Porchetto's avatar Roque Porchetto

Updating service worker and renaming some gadgets.

parent 35a29fd2
......@@ -129,11 +129,7 @@
'gadget_translation.html',
'gadget_translation.js',
'gadget_translation_data.js',
//my gadgets
'gadget_erp5_page_fifdata.html',
'gadget_erp5_page_fifdata.js',
'gadget_FIF_page_front.html',
'gadget_FIF_page_front.js',
//other needed gadgets
'gadget_erp5_pt_form_list.html',
'gadget_erp5_global.js',
'gadget_erp5_pt_form_list.html',
......@@ -147,9 +143,15 @@
'gadget_erp5_label_field.js',
'gadget_erp5_field_listbox.html',
'gadget_erp5_field_listbox.js',
//other pages
'gadget_erp5_page_data_array.html',
'gadget_erp5_page_data_array.js',
//my gadgets for fifrunner
'gadget_erp5_page_fifdata.html',
'gadget_erp5_page_fifdata.js',
'gadget_fif_page_list_dataset.html',
'gadget_fif_page_list_dataset.js',
'gadget_fif_page_list_file.html',
'gadget_fif_page_list_file.js',
'gadget_erp5_page_file_fif.html',
'gadget_erp5_page_file_fif.js',
'gadget_html5_element.html',
'gadget_html5_element.js',
'fif_gadget_erp5_panel.html',
......
......@@ -9,37 +9,18 @@
<script src="rsvp.js"></script>
<script src="renderjs.js"></script>
<script id="data-array-content" class="contact-list-template" type="text/x-handlebars-template">
<div class="ui-grid-b ui-responsive">
<div class="ui-block-a"></div>
<div class="ui-block-b">
<ul data-role="listview" data-inset="true">
{{#each array_list}}
<li>
{{this}}
</li>
{{/each}}
</ul>
</div>
<div class="ui-block-c"></div>
</div>
</script>
</head>
<!--
<script src="ndarray.js"></script>
<script src="handlebars.js"></script>
<script src="gadget_erp5_pt_form_view.js" type="text/javascript"></script>
-->
<script src="gadget_erp5_global.js" type="text/javascript"></script>
<script src="gadget_erp5_page_file.js"></script>
<script src="gadget_erp5_page_file_fif.js"></script>
<body>
<div data-gadget-url="gadget_erp5_pt_form_view.html"
data-gadget-scope="form_view"
data-gadget-sandbox="public">
</div>
<div>
IT'S SUPPOSSED TO SHOW THE JSON META DATA HERE
</div>
</body>
</html>
\ No newline at end of file
......@@ -75,7 +75,7 @@
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>gadget_erp5_page_file.html</string> </value>
<value> <string>gadget_erp5_page_file_fif.html</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
......@@ -16,6 +16,8 @@
// declared methods
/////////////////////////////////////////////////////////////////
.allowPublicAcquisition('updateHeader', function (argument_list) {
console.log("header arguments:");
console.log(argument_list);
var header_dict = {
page_title: "File : " + this.state.document_title,
selection_url: argument_list[0].selection_url,
......
......@@ -75,7 +75,7 @@
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>gadget_erp5_page_file.js</string> </value>
<value> <string>gadget_erp5_page_file_fif.js</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
......@@ -6,7 +6,7 @@
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>Page Data Array List</title>
<title>Page File List</title>
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
......
......@@ -18,7 +18,7 @@
})
.allowPublicAcquisition('getUrlFor', function (argument_list) {
if (argument_list[0].command === 'index') {
return this.getUrlFor({command: 'index', options: {jio_key: argument_list[0].options.jio_key, page: "file"}});
return this.getUrlFor({command: 'index', options: {jio_key: argument_list[0].options.jio_key, page: "file_fif"}});
}
return this.getUrlFor.apply(this, argument_list);
})
......
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