MyAccount: Download pubkey+priv key- OK
[unfold.git] / plugins / updater / static / js / updater.js
index e85a513..7ff9b8a 100644 (file)
@@ -1,12 +1,10 @@
 /**
- * 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
@@ -27,7 +25,7 @@
 
         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 );