return array[arguments.length + 1];
},
+ // TOGGLE
+ // plugin-helper.js is about managing toggled state
+ // it would be beneficial to merge it in here
+ toggle_on: function () { return this.toggle("true"); },
+ toggle_off: function () { return this.toggle("false"); },
+ toggle: function (status) {
+ messages.debug("toggle domid="+this.options.plugin_uuid);
+ plugin_helper.set_toggle_status (this.options.plugin_uuid,status);
+ },
+
/* SPIN */
spin: function() {
var button = '';
var row;
-
+
+ // make sure the change is visible : toggle on the whole plugin
+ // this might hae to be made an 'auto-toggle' option of this plugin..
+ // also it might be needed to be a little finer-grained here
+ this.toggle_on();
+
switch(data.request) {
case FIELD_REQUEST_ADD_RESET:
case FIELD_REQUEST_REMOVE_RESET:
title = 'Pending operations',
query = main_query,
togglable = True,
+ # start turned off, it will open up itself when stuff comes in
+ toggled = False,
domid = 'pending',
outline_complete = True,
))