- options = e.data.instance.data().SimpleList.options;
- is_cached = options.query.ts != 'now' ? true : false;
- e.data.instance.html(myslice_html_ul(rows, options.key, options.value, is_cached)+"<br/>");
-
+ var options = e.data.data().SimpleList.options;
+ var is_cached = options.query.timestamp != 'now' ? true : false;
+ // here is where we use 'key' and 'value' from the SimpleList (python) constructor
+ html_code=myslice_html_tbody(rows, options.key, options.value, is_cached);
+ // locate the tbody from the template, set its text
+ $tbody.html(html_code);
+ // clear the spinning wheel
+ var $elt = e.data;
+ if (simplelist_debug) console.log("about to unspin with elt #" + $elt.attr('id') + " class " + $elt.attr('class'));
+ $elt.closest('.need-spin').spin(false);