Created
September 20, 2016 07:22
-
-
Save bangpound/b7d519f68195aff3a95130f763924c88 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff --git a/placeholder.js b/placeholder.js | |
index b28e272..9fa8d37 100644 | |
--- a/placeholder.js | |
+++ b/placeholder.js | |
@@ -7,7 +7,9 @@ | |
(function ($) { | |
Drupal.behaviors.placeholder = { | |
attach: function () { | |
- $("input[placeholder], textarea[placeholder]").placeholder(); | |
+ if(typeof($("input[placeholder], textarea[placeholder]").placeholder())=='function') { | |
+ $("input[placeholder], textarea[placeholder]").placeholder(); | |
+ } | |
} | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment