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 @@
<value> <string encoding="cdata"><![CDATA[
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
# images/ajax-loader.gif\n
CACHE:\n
......@@ -359,7 +359,7 @@ NETWORK:\n
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>946.49074.40798.4676</string> </value>
<value> <string>946.54980.2341.31249</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -377,7 +377,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>1446127880.43</float>
<float>1446482188.64</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -146,15 +146,15 @@
/////////////////////////////////////////////////////////////////\n
.declareMethod("render", function (options) {\n
var view_list,\n
matching,\n
tab_list = [],\n
gadget = this;\n
gadget = this,\n
erp5_document;\n
\n
return gadget.jio_getAttachment(options.jio_key, "links")\n
.push(function (result) {\n
var erp5_document = result,\n
i,\n
var i,\n
promise_list = [];\n
erp5_document = result,\n
view_list = erp5_document._links.view;\n
\n
// All ERP5 document should at least have one view.\n
......@@ -164,9 +164,6 @@
}\n
\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
view: view_list[i].href,\n
editable: true,\n
......@@ -209,19 +206,19 @@
.push(function (my_translated_html) {\n
gadget.props.element.innerHTML = my_translated_html;\n
\n
if (matching !== undefined) {\n
return gadget.updateHeader({\n
cancel_url: tab_list[matching].link\n
});\n
}\n
return gadget.getUrlFor({command: \'change\', options: {\n
view: "view",\n
editable: true\n
}})\n
.push(function (url) {\n
return gadget.updateHeader({cancel_url: url});\n
});\n
\n
return RSVP.all([\n
gadget.getUrlFor({command: \'change\', options: {\n
page: undefined\n
}}),\n
gadget.getUrlFor({command: \'change\', options: {page: "breadcrumb"}})\n
]);\n
})\n
.push(function (url_list) {\n
return gadget.updateHeader({\n
back_url: url_list[0],\n
page_title: erp5_document.title,\n
breadcrumb_url: url_list[1]\n
});\n
});\n
});\n
\n
......@@ -348,7 +345,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>romain</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -362,7 +359,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>946.30248.23538.25292</string> </value>
<value> <string>946.54636.17447.21640</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -380,8 +377,8 @@
</tuple>
<state>
<tuple>
<float>1444998449.41</float>
<string>GMT</string>
<float>1446461659.02</float>
<string>UTC</string>
</tuple>
</state>
</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