mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 19:34:40 +08:00
Correction scripts wre not adapted in Orchard following jquery changes
--HG-- branch : 1.x
This commit is contained in:
@@ -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("");
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user