[Rt-commit] rt branch, 4.6/inline-edit, updated. rt-4.4.1-140-g94a8398

Shawn Moore shawn at bestpractical.com
Mon Sep 12 19:04:06 EDT 2016


The branch, 4.6/inline-edit has been updated
       via  94a839870216f735519b86dec2744d2430971efd (commit)
      from  49711a28091ea4658a95476c181de7c4dc167c55 (commit)

Summary of changes:
 share/static/js/util.js | 4 ++++
 1 file changed, 4 insertions(+)

- Log -----------------------------------------------------------------
commit 94a839870216f735519b86dec2744d2430971efd
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Mon Sep 12 22:59:04 2016 +0000

    If we're already editing, don't reopen the editor

diff --git a/share/static/js/util.js b/share/static/js/util.js
index da41729..859a56e 100644
--- a/share/static/js/util.js
+++ b/share/static/js/util.js
@@ -596,6 +596,10 @@ jQuery(function () {
         var value = cell.find('.value');
         var editor = cell.find('.editor');
 
+        if (cell.hasClass('editing')) {
+            return;
+        }
+
         var height = cell.height();
 
         cell.addClass('editing');

-----------------------------------------------------------------------


More information about the rt-commit mailing list