Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
523308c8
Commit
523308c8
authored
Nov 02, 2015
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Add back and breadcrumb links on the tabulation page
parent
7cb23b7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
27 deletions
+24
-27
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_appcache.xml
...TemplateItem/web_page_module/rjs_gadget_erp5_appcache.xml
+3
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.xml
+21
-24
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_appcache.xml
View file @
523308c8
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
CACHE MANIFEST\n
CACHE MANIFEST\n
# generated on
Thu, 29 Oct 2015 14:10:37
+0000\n
# generated on
Mon, 02 Nov 2015 16:36:02
+0000\n
# XXX + fonts\n
# XXX + fonts\n
# images/ajax-loader.gif\n
# images/ajax-loader.gif\n
CACHE:\n
CACHE:\n
...
@@ -359,7 +359,7 @@ NETWORK:\n
...
@@ -359,7 +359,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.
49074.40798.4676
</string>
</value>
<value>
<string>
946.
54980.2341.31249
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -377,7 +377,7 @@ NETWORK:\n
...
@@ -377,7 +377,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1446
127880.43
</float>
<float>
1446
482188.64
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.xml
View file @
523308c8
...
@@ -146,15 +146,15 @@
...
@@ -146,15 +146,15 @@
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
.declareMethod("render", function (options) {\n
.declareMethod("render", function (options) {\n
var view_list,\n
var view_list,\n
matching,\n
tab_list = [],\n
tab_list = [],\n
gadget = this;\n
gadget = this,\n
erp5_document;\n
\n
\n
return gadget.jio_getAttachment(options.jio_key, "links")\n
return gadget.jio_getAttachment(options.jio_key, "links")\n
.push(function (result) {\n
.push(function (result) {\n
var erp5_document = result,\n
var i,\n
i,\n
promise_list = [];\n
promise_list = [];\n
erp5_document = result,\n
view_list = erp5_document._links.view;\n
view_list = erp5_document._links.view;\n
\n
\n
// All ERP5 document should at least have one view.\n
// All ERP5 document should at least have one view.\n
...
@@ -164,9 +164,6 @@
...
@@ -164,9 +164,6 @@
}\n
}\n
\n
\n
for (i = 0; i < view_list.length; i += 1) {\n
for (i = 0; i < view_list.length; i += 1) {\n
if (options.view === view_list[i].href) {\n
matching = i;\n
}\n
promise_list.push(gadget.getUrlFor({command: \'change\', options: {\n
promise_list.push(gadget.getUrlFor({command: \'change\', options: {\n
view: view_list[i].href,\n
view: view_list[i].href,\n
editable: true,\n
editable: true,\n
...
@@ -209,19 +206,19 @@
...
@@ -209,19 +206,19 @@
.push(function (my_translated_html) {\n
.push(function (my_translated_html) {\n
gadget.props.element.innerHTML = my_translated_html;\n
gadget.props.element.innerHTML = my_translated_html;\n
\n
\n
if (matching !== undefined) {
\n
return RSVP.all([
\n
return gadget.updateHeader(
{\n
gadget.getUrlFor({command: \'change\', options:
{\n
cancel_url: tab_list[matching].link
\n
page: undefined
\n
}
);
\n
}
}),
\n
}
\n
gadget.getUrlFor({command: \'change\', options: {page: "breadcrumb"}})
\n
return gadget.getUrlFor({command: \'change\', options: {
\n
]);
\n
view: "view",
\n
})
\n
editable: true
\n
.push(function (url_list) {
\n
}})
\n
return gadget.updateHeader({
\n
.push(function (url) {
\n
back_url: url_list[0],
\n
return gadget.updateHeader({cancel_url: url});
\n
page_title: erp5_document.title,
\n
});
\n
breadcrumb_url: url_list[1]
\n
\n
});
\n
});\n
});\n
});\n
});\n
\n
\n
...
@@ -348,7 +345,7 @@
...
@@ -348,7 +345,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
romain
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -362,7 +359,7 @@
...
@@ -362,7 +359,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.
30248.23538.25292
</string>
</value>
<value>
<string>
946.
54636.17447.21640
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -380,8 +377,8 @@
...
@@ -380,8 +377,8 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
144
4998449.41
</float>
<float>
144
6461659.02
</float>
<string>
GMT
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
</object>
</object>
...
...
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