Commit 523308c8 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Add back and breadcrumb links on the tabulation page

parent 7cb23b7d
...@@ -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>1446127880.43</float> <float>1446482188.64</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -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>1444998449.41</float> <float>1446461659.02</float>
<string>GMT</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
</object> </object>
......
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