Commit 98c47483 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Xiaowu Zhang

epr5_web_renderjs_ui: useless code

parent f7427a7c
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
// Acquired methods // Acquired methods
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
.declareAcquiredMethod("jio_allDocs", "jio_allDocs") .declareAcquiredMethod("jio_allDocs", "jio_allDocs")
.declareAcquiredMethod("translateHtml", "translateHtml")
.declareAcquiredMethod("updateHeader", "updateHeader") .declareAcquiredMethod("updateHeader", "updateHeader")
.declareAcquiredMethod("getUrlFor", "getUrlFor") .declareAcquiredMethod("getUrlFor", "getUrlFor")
...@@ -66,8 +65,7 @@ ...@@ -66,8 +65,7 @@
.push(function (result_list) { .push(function (result_list) {
var i, var i,
document_list = [], document_list = [],
document_dict = {}, document_dict = {};
result_html;
for (i = 0; i < result_list.length; i += 1) { for (i = 0; i < result_list.length; i += 1) {
document_dict[result_list[i][2]] = { document_dict[result_list[i][2]] = {
...@@ -82,15 +80,9 @@ ...@@ -82,15 +80,9 @@
} }
} }
result_html = table_template({ gadget.element.querySelector('.document_list').innerHTML = table_template({
documentlist: document_list documentlist: document_list
}); });
return gadget.translateHtml(result_html);
})
.push(function (my_translated_html) {
gadget.element.querySelector('.document_list').innerHTML =
my_translated_html;
}); });
}); });
}(window, rJS, RSVP, Handlebars, SimpleQuery, ComplexQuery, Query)); }(window, rJS, RSVP, Handlebars, SimpleQuery, ComplexQuery, Query));
\ No newline at end of file
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>953.52380.29788.47923</string> </value> <value> <string>955.20852.55883.22442</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1473419443.85</float> <float>1479305774.67</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -78,14 +78,9 @@ ...@@ -78,14 +78,9 @@
count: result_list[i][2] count: result_list[i][2]
}); });
} }
return gadget.translateHtml(table_template({ gadget.element.querySelector('.document_list').innerHTML = table_template({
documentlist: line_list documentlist: line_list
})); });
})
.push(function (my_translated_html) {
gadget.element.querySelector('.document_list').innerHTML =
my_translated_html;
}); });
}); });
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>949.45349.17509.30190</string> </value> <value> <string>955.18006.50413.2645</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1473173906.59</float> <float>1479305907.63</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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