function manifold_async_exec(queries) {
if (manifold_async_debug) console.log('manifold_async_exec length='+ queries.length);
// start spinners
- jQuery('.plugin-toggle').spin();
+ jQuery('.need-spin').spin();
// We use js function closure to be able to pass the query (array) to the
// callback function used when data is received
})
}
-/*
+/* not used
function manifold_async_error(str) {
var out = '<div class="error"><h2>Error</h2><dl id="system-message"><dt class="error">Notice</dt><dd class="error message"><ul><li>' + jQuery('<div />').text(str).html() + '</li></ul></dd></dl></div>';
jQuery('#manifold_message').html(out);
//onObjectAvailable('Spinners', function(){ Spinners.get('.loading').remove(); }, this, true);
- jQuery('.plugin-toggle').spin(false);
+ jQuery('.need-spin').spin(false);
}
*/
{#<!--begin {{ classname }}{{ domid }}-->#}
{% if visible %}
-<div class='plugin-toggle' id='toggle-{{ domid }}'>
+<div class='plugin-toggle need-spin' id='toggle-{{ domid }}'>
{% if togglable %}
{% if not toggled %}
<p id='show-{{ domid }}' class='plugin-show'><i class="icon-hand-right"></i> Show {{ title }} ({{ classname }})</p>
e.data.html(html_code);
var $elt = e.data;
if (simplelist_debug) console.log("about to unspin with elt #" + $elt.attr('id') + " class " + $elt.attr('class'));
- $elt.closest('.plugin-toggle').spin(false);
+ $elt.closest('.need-spin').spin(false);
}
function myslice_html_ul(data, key, value, is_cached) {