Commit 98b1db9e authored by Tomáš Peterka's avatar Tomáš Peterka

[renderjs_ui] Revert commit #98c47483

-  translate worklists
-  translate history page
parent e879c6f9
......@@ -18,7 +18,7 @@
<!-- XXX must set theme here! -->
<script id="table-template" type="text/x-handlebars-template">
<ul data-role="listview" data-theme="c" class="document-listview ui-listview-inset ui-corner-all">
{{#each documentlist}}
{{#each document_list}}
<li><a class="ui-body-inherit" href="{{link}}">{{title}}</a></li>
{{/each}}
</ul>
......
......@@ -220,7 +220,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <string>superkato</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>954.45675.44850.53452</string> </value>
<value> <string>960.5523.58984.43537</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1476952869.32</float>
<float>1522759955.01</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -20,6 +20,7 @@
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")
.declareAcquiredMethod("updateHeader", "updateHeader")
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("translateHtml", "translateHtml")
/////////////////////////////////////////////////////////////////
// declared methods
......@@ -85,10 +86,10 @@
document_list.push(document_dict[id_list[i]]);
}
}
gadget.element.querySelector('.document_list').innerHTML = table_template({
documentlist: document_list
});
return gadget.translateHtml(table_template({document_list: document_list}));
})
.push(function (translated_html) {
gadget.element.querySelector('.document_list').innerHTML = translated_html;
});
});
}(window, rJS, RSVP, Handlebars, SimpleQuery, ComplexQuery, Query));
\ No newline at end of file
......@@ -216,7 +216,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <string>superkato</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>965.30967.55562.31266</string> </value>
<value> <string>966.40020.36075.32580</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1518597817.52</float>
<float>1522759930.74</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -93,9 +93,12 @@
count: result_list[i][2]
});
}
gadget.element.querySelector('.document_list').innerHTML = table_template({
return gadget.translateHtml(table_template({
document_list: line_list
});
}));
})
.push(function (translated_html) {
gadget.element.querySelector('.document_list').innerHTML = translated_html;
});
});
......
......@@ -216,7 +216,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <string>superkato</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>964.54335.52932.23808</string> </value>
<value> <string>965.39086.65235.37700</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1518542729.19</float>
<float>1522751880.06</float>
<string>UTC</string>
</tuple>
</state>
......
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