Commit c8233a64 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Limit items on frontpage and reduce information on the listbox.

parent 77397fc7
...@@ -84,7 +84,6 @@ ...@@ -84,7 +84,6 @@
.push(function (result) { .push(function (result) {
var i, destination_list, column_list = [ var i, destination_list, column_list = [
['title', 'Title'], ['title', 'Title'],
['reference', 'Reference'],
['monitoring_status', 'Status'] ['monitoring_status', 'Status']
]; ];
gadget.me_dict = result[1]; gadget.me_dict = result[1];
...@@ -132,13 +131,9 @@ ...@@ -132,13 +131,9 @@
}); });
}) })
.push(function () { .push(function () {
var lines_limit; var lines_limit = 15;
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
return gadget.getSetting("listbox_lines_limit", 100);
})
.push(function (listbox_lines_limit) {
lines_limit = listbox_lines_limit;
return gadget.getDeclaredGadget('last'); return gadget.getDeclaredGadget('last');
}) })
.push(function (form_list) { .push(function (form_list) {
...@@ -156,7 +151,7 @@ ...@@ -156,7 +151,7 @@
"default_params": {}, "default_params": {},
"editable": 0, "editable": 0,
"editable_column_list": [], "editable_column_list": [],
"key": "slap_site_listbox", "key": "slap_ticket_listbox",
"lines": lines_limit, "lines": lines_limit,
"list_method": "portal_catalog", "list_method": "portal_catalog",
"query": "urn:jio:allDocs?query=portal_type%3A%20%28%22Support%20Request%22%2C%20%22Upgrade%20Decision%22%2C%20%22Regularisation%20Request%22%29%20AND%20destination_decision_reference%3A" + gadget.me_dict.reference, "query": "urn:jio:allDocs?query=portal_type%3A%20%28%22Support%20Request%22%2C%20%22Upgrade%20Decision%22%2C%20%22Regularisation%20Request%22%29%20AND%20destination_decision_reference%3A" + gadget.me_dict.reference,
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>964.17379.65297.37222</string> </value> <value> <string>965.32166.29414.48520</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>1513795612.47</float> <float>1518617445.5</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