Created
March 23, 2016 07:08
-
-
Save SQReder/90a9283257bb36ff319e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0159d6ae88ee142473ea00a7bc8eda59f39c4431 Mon Sep 17 00:00:00 2001 | |
From: endAurum <[email protected]> | |
Date: Wed, 23 Mar 2016 10:01:32 +0300 | |
Subject: [PATCH] Fix broken offer change on load page with hash | |
--- | |
resource/js/jquery.changeoffer.js | 7 +++++++ | |
1 file changed, 7 insertions(+) | |
diff --git a/resource/js/jquery.changeoffer.js b/resource/js/jquery.changeoffer.js | |
index 2b30e60..db18cc2 100644 | |
--- a/resource/js/jquery.changeoffer.js | |
+++ b/resource/js/jquery.changeoffer.js | |
@@ -51,6 +51,13 @@ | |
data = {}; $this.data('changeOffer', data); | |
data.options = $.extend({}, defaults, initoptions); | |
$this.change(changeOffer); | |
+ | |
+ // HACK jQuery by default does not fire Change event on triggering Click, | |
+ // so trigger it manually | |
+ $this.click(function(e) { | |
+ $el = $(e.target); | |
+ $el.change(); | |
+ }); | |
var context = $(this).closest(data.options.context); | |
-- | |
1.9.5.msysgit.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment