#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:
Nicholas Mayne
2013-06-07 19:12:45 +01:00
parent 5197180acb
commit 677d1973c2
2 changed files with 10 additions and 10 deletions

View File

@@ -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);

View File

@@ -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) {