Showing
1 changed file
with
4 additions
and
1 deletions
@@ -52,6 +52,8 @@ var option = { | @@ -52,6 +52,8 @@ var option = { | ||
52 | ] | 52 | ] |
53 | }; | 53 | }; |
54 | 54 | ||
55 | +var refundConfirm = {}; | ||
56 | + | ||
55 | var Dialog = require('../common/dialog').Dialog; | 57 | var Dialog = require('../common/dialog').Dialog; |
56 | 58 | ||
57 | require('../plugins/jquery.qupload'); | 59 | require('../plugins/jquery.qupload'); |
@@ -458,6 +460,7 @@ function loadWaiting(status) { | @@ -458,6 +460,7 @@ function loadWaiting(status) { | ||
458 | } | 460 | } |
459 | 461 | ||
460 | function saveRefundExchange(url, data) { | 462 | function saveRefundExchange(url, data) { |
463 | + refundConfirm.close(); | ||
461 | loadWaiting(true); | 464 | loadWaiting(true); |
462 | $.ajax({ | 465 | $.ajax({ |
463 | type: 'POST', | 466 | type: 'POST', |
@@ -522,7 +525,7 @@ $('.save-btn').click(function() { | @@ -522,7 +525,7 @@ $('.save-btn').click(function() { | ||
522 | } | 525 | } |
523 | 526 | ||
524 | if (pageType) { | 527 | if (pageType) { |
525 | - new Dialog($.extend(true, {}, option, { | 528 | + refundConfirm = new Dialog($.extend(true, {}, option, { |
526 | content: content, | 529 | content: content, |
527 | btns: [{ | 530 | btns: [{ |
528 | cb: function() { | 531 | cb: function() { |
-
Please register or login to post a comment