[extensions-web] js: Submit when we blur inline editing



commit 59c8884023f687f359cebd76294f404719c9b6ac
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Dec 8 12:07:32 2011 -0500

    js: Submit when we blur inline editing

 sweettooth/static/js/main.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index 957570a..2f96ad9 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -20,6 +20,7 @@ require(['jquery', 'messages', 'extensions',
 
             $elem.editable(url, $.extend(options || {},
                                 { select: true,
+                                  onblur: 'submit',
                                   ajaxoptions: { error: error, dataType: 'json' },
                                   callback: function(result, settings) {
                                       $elem.text(result);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]