summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-03-11 09:46:00 -0700
committerBharat Mediratta <bharat@menalto.com>2013-03-11 09:46:00 -0700
commit313f2abc0c2a4f90242810aef1cda5ea642f717a (patch)
tree769b4f54c5da405f4b54084be1ba5c20d5b6ff42 /lib
parent24e720b48ea7ca8892374431727d42d9d1eac486 (diff)
parent2e94edab5396d53b1b09b6b1415d1f66d6f16de5 (diff)
Merge pull request #205 from shadlaws/fix_2053
#2053 - Change all .bind() to .on() for jQuery future-proofing.
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.common.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js
index 5ff6b397..f5dee958 100644
--- a/lib/gallery.common.js
+++ b/lib/gallery.common.js
@@ -212,7 +212,7 @@
}
// Attach event listeners to the input
- input.bind("focus", function(e) {
+ input.on("focus", function(e) {
// Empty input value if it equals it's label
if ($(this).val() == label.html()) {
$(this).val("");
@@ -220,7 +220,7 @@
button.attr("disabled", false);
});
- input.bind("blur", function(e){
+ input.on("blur", function(e) {
// Reset the input value if it's empty
if ($(this).val() == "") {
$(this).val(label.html());