mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-23 09:13:23 -05:00
When no shop, no Change Fund mouseover editing.
This commit is contained in:
parent
1929c5d752
commit
a082412e4c
@ -31,6 +31,10 @@ $(function() {
|
||||
$(".paid").click(function() {
|
||||
$("#current_shop").html(" <a style='color:red' href='shop_log.php'>" + start_new_shop + "</a>");
|
||||
return false;
|
||||
});
|
||||
$('.editable_change').mouseover(function() {
|
||||
$("#current_shop").html(" <a style='color:red' href='shop_log.php'>" + start_new_shop + "</a>");
|
||||
$('.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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user