/**
- * Description: associate with a Get query, maintains the 'Update' query that records pending changes
- * Copyright (c) 2012 UPMC Sorbonne Universite - INRIA
+ * Description: Manage query updates
+ * Copyright (c) 2012-2013 UPMC Sorbonne Universite - INRIA
* License: GPLv3
*/
-// xxx this is ongoing work, very rough, and not working at all yet
-
-( function ( $ ) {
+(function( $ ) {
var debug=false;
// debug=true
arm_button: function()
{
- this.el('updater').click(this, this.submit_update_request);
+ this.elmt('updater').click(this, this.submit_update_request);
},
submit_update_request: function (e)
disable_update_button: function()
{
- this.el('updater').attr('disabled', 'disabled');
+ this.elmt('updater').attr('disabled', 'disabled');
},
/*************************** QUERY HANDLER ****************************/
/*************************** RECORD HANDLER ***************************/
- on_query_status_
-
/************************** PRIVATE METHODS ***************************/
/******************************** TODO ********************************/
}
*/
});
-})( jQuery );
+ $.plugin('Updater', Updater);
+
+})( jQuery );