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