From a082412e4cce3df14db28b5e9fc8d98b350935cf Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Sat, 10 Jan 2015 08:38:03 +0000 Subject: [PATCH] When no shop, no Change Fund mouseover editing. --- js/transaction.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/transaction.js b/js/transaction.js index 1df301c..2eb07e5 100644 --- a/js/transaction.js +++ b/js/transaction.js @@ -31,6 +31,10 @@ $(function() { $(".paid").click(function() { $("#current_shop").html(" " + start_new_shop + ""); return false; + }); + $('.editable_change').mouseover(function() { + $("#current_shop").html(" " + start_new_shop + ""); + $('.editable_change').editable("disable"); }); } } ); @@ -79,8 +83,8 @@ $(function() { var obj = $.parseJSON(value) $("#" + this.id).text(obj.changed_change); var diff = Number(obj.changed_change) - Number(obj.change); - // var str = this.id; - // var id = str.match(/\d+/); + var str = this.id; + var id = str.match(/\d+/); if (diff != 0) { /* if(!$("#" + id[0] + "_different_change").length) {