Correction scripts wre not adapted in Orchard following jquery changes

--HG--
branch : 1.x
This commit is contained in:
christian@AlteredCarbon
2013-04-01 15:41:57 +02:00
parent 298532650d
commit 85721cb105
6 changed files with 19 additions and 20 deletions

View File

@@ -113,13 +113,13 @@
_this.val(_this.attr("placeholder")).addClass("placeholderd");
}
})
.live("focus", function () {
.on("focus", function () {
var _this = $(this);
if (_this.val() === _this.attr("placeholder")) {
_this.val("").removeClass("placeholderd");
}
})
.live("blur", function () {
.on("blur", function () {
var _this = $(this);
if (_this.val() === "") {
_this.val(_this.attr("placeholder")).addClass("placeholderd");
@@ -127,7 +127,7 @@
});
//make sure the placeholder value is not taken as the input value when submitting forms
$("form").live("submit", function () {
$("form").on("submit", function () {
$(":input[placeholder].placeholderd").val("");
});