diff --git a/src/Orchard.Web/Core/Shapes/Scripts/base.js b/src/Orchard.Web/Core/Shapes/Scripts/base.js index 49a8fe9ab..f5e95757e 100644 --- a/src/Orchard.Web/Core/Shapes/Scripts/base.js +++ b/src/Orchard.Web/Core/Shapes/Scripts/base.js @@ -175,7 +175,7 @@ if (controller.is(":checkbox")) { controller.click($(this).toggleWhatYouControl).each($(this).toggleWhatYouControl); } else if (controller.is(":radio")) { - $("[name=" + controller.attr("name") + "]").click(function () { $("[name=" + $(this).attr("name") + "]").each($(this).toggleWhatYouControl); }); + $("[name='" + controller.attr("name") + "']").click(function () { $("[name='" + $(this).attr("name") + "']").each($(this).toggleWhatYouControl); }); } else if (controller.is("option")) { controller.parent().change(function () { diff --git a/src/Orchard.Web/Modules/Orchard.Email/Views/EditorTemplates/Parts/SmtpSettings.cshtml b/src/Orchard.Web/Modules/Orchard.Email/Views/EditorTemplates/Parts/SmtpSettings.cshtml index 622156159..d19b0c43b 100644 --- a/src/Orchard.Web/Modules/Orchard.Email/Views/EditorTemplates/Parts/SmtpSettings.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Email/Views/EditorTemplates/Parts/SmtpSettings.cshtml @@ -37,30 +37,33 @@
+
- @Html.RadioButtonFor(m => m.UseDefaultCredentials, false) - + @Html.RadioButtonFor(m => m.UseDefaultCredentials, false, new { id = "customCredentialsOption", name = "UseDefaultCredentials" }) + @Html.ValidationMessage("UseDefaultCredentials", "*")
-
- - @Html.TextBoxFor(m => m.UserName, new { @class = "text" }) - @Html.ValidationMessage("UserName", "*") - @T("The username for authentication.") -
-
- - @Html.TextBoxFor(m => m.Password, new { type = "password", @class = "text medium" }) - @Html.ValidationMessage("Password", "*") - @T("The password for authentication.") +
+ + + @Html.TextBoxFor(m => m.UserName, new { @class = "text" }) + @Html.ValidationMessage("UserName", "*") + @T("The username for authentication.") + + + + @Html.TextBoxFor(m => m.Password, new { type = "password", @class = "text medium" }) + @Html.ValidationMessage("Password", "*") + @T("The password for authentication.") +
- @Html.RadioButtonFor(m => m.UseDefaultCredentials, true, new { id = "smtpUseDefaultCredentials" }) - - @Html.ValidationMessage("UseCustomCredentials", "*") - @T("When this option is checked, the aplication pool or host-process identity is used to authenticate with the mail server. ") + @Html.RadioButtonFor(m => m.UseDefaultCredentials, true, new { id = "defaultCredentialsOptions", name = "UseDefaultCredentials" }) + + @Html.ValidationMessage("UseDefaultCredentials", "*") + @T("When this option is selected, the aplication pool or host-process identity is used to authenticate with the mail server. ")