mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19677: Change JS to click once loaded. Also added dependency. Fixed a styling issue too.
Work Item: 19677 --HG-- branch : 1.x
This commit is contained in:
@@ -13,11 +13,10 @@
|
||||
}
|
||||
})();
|
||||
|
||||
(function ($) {
|
||||
$("select.recipe").change(function () { // class="recipe" on the select element
|
||||
var description = $(this).find(":selected").attr("recipedescription"); // reads the html attribute of the selected option
|
||||
$("#recipedescription").text(description); // make the contents of <div id="recipe-description"></div> be the escaped description string
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
|
||||
$(document).ready(function ($) {
|
||||
$("select.recipe").change(function () { // class="recipe" on the select element
|
||||
var description = $(this).find(":selected").attr("recipedescription"); // reads the html attribute of the selected option
|
||||
$("#recipedescription").text(description); // make the contents of <div id="recipe-description"></div> be the escaped description string
|
||||
});
|
||||
$(".data").find('input[name=DatabaseProvider]:checked').click();
|
||||
})(jQuery);
|
@@ -1,6 +1,7 @@
|
||||
@model Orchard.Setup.ViewModels.SetupViewModel
|
||||
@{
|
||||
Script.Require("jQuery");
|
||||
Script.Require("ShapesBase");
|
||||
Script.Include("setup.js");
|
||||
}
|
||||
<h1>@Html.TitleForPage(T("Get Started").ToString())</h1>
|
||||
@@ -19,11 +20,11 @@
|
||||
</div>
|
||||
<div>
|
||||
<label for="AdminPassword">@T("Choose a password:")</label>
|
||||
@Html.PasswordFor(svm => svm.AdminPassword)
|
||||
@Html.PasswordFor(svm => svm.AdminPassword, new { @class = "text-box single-line" })
|
||||
</div>
|
||||
<div>
|
||||
<label for="ConfirmAdminPassword">@T("Confirm the password:")</label>
|
||||
@Html.PasswordFor(svm => svm.ConfirmPassword)
|
||||
@Html.PasswordFor(svm => svm.ConfirmPassword, new { @class = "text-box single-line" })
|
||||
</div>
|
||||
</fieldset>
|
||||
if (!Model.DatabaseIsPreconfigured) {
|
||||
|
Reference in New Issue
Block a user