mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Removing unused script.
This commit is contained in:
@@ -256,7 +256,6 @@
|
||||
<Content Include="Scripts\calendars\jquery.calendars.validation.min.js" />
|
||||
<Content Include="Scripts\jquery-1.11.1.js" />
|
||||
<Content Include="Scripts\jquery-1.11.1.min.js" />
|
||||
<Content Include="Scripts\jquery-datetime-editor.js" />
|
||||
<Content Include="Scripts\jquery-migrate-1.2.1.js" />
|
||||
<Content Include="Scripts\jquery-migrate-1.2.1.min.js" />
|
||||
<Content Include="Scripts\timeentry\jquery.timeentry-ar.js" />
|
||||
|
@@ -77,7 +77,6 @@ namespace Orchard.jQuery {
|
||||
manifest.DefineStyle("jQueryTimeEntry").SetUrl("jquery.timeentry.css").SetVersion("1.5.2");
|
||||
|
||||
// jQuery Date/Time Editor Enhancements
|
||||
manifest.DefineScript("jQueryDateTimeEditor").SetUrl("jquery-datetime-editor.js").SetDependencies("jQuery");
|
||||
manifest.DefineStyle("jQueryDateTimeEditor").SetUrl("jquery-datetime-editor.css").SetDependencies("DateTimeEditor");
|
||||
|
||||
// jQuery File Upload
|
||||
|
@@ -1,18 +0,0 @@
|
||||
var clearHint = function (self) { self.removeClass("hinted"); if (self.val() == self.data("hint")) { self.val("") } };
|
||||
var resetHint = function (self) { setTimeout(function () { if (!self.val()) { self.addClass("hinted").val(self.data("hint")) } }, 300) };
|
||||
|
||||
$(document).ready(function () {
|
||||
$("label.forpicker").each(function () {
|
||||
var $this = $(this);
|
||||
var pickerInput = $("#" + $this.attr("for"));
|
||||
pickerInput.data("hint", $this.text());
|
||||
if (!pickerInput.val()) {
|
||||
pickerInput.addClass("hinted")
|
||||
.val(pickerInput.data("hint"))
|
||||
.change(function () { clearHint($(this)); })
|
||||
.focus(function () { clearHint($(this)); })
|
||||
.blur(function () { resetHint($(this)); });
|
||||
$this.closest("form").submit(function () { clearHint(pickerInput); pickerInput = 0; });
|
||||
}
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user