Add click submit
This commit is contained in:
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<main role="main">
|
<main role="main" class="mb-3">
|
||||||
@Html.Partial("_StatusMessage")
|
@Html.Partial("_StatusMessage")
|
||||||
|
|
||||||
@RenderBody()
|
@RenderBody()
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
@using ClientDependency.Core.Mvc
|
@using System.Web.Mvc.Html
|
||||||
|
@using ClientDependency.Core.Mvc
|
||||||
|
@using LeafWeb.WebCms.Utility
|
||||||
@model LeafDataQuery
|
@model LeafDataQuery
|
||||||
@{
|
@{
|
||||||
Html.RequiresJs("~/scripts/jquery.validate.min.js", 2);
|
Html.RequiresJs("~/scripts/jquery.validate.min.js", 2);
|
||||||
@@ -27,7 +29,7 @@
|
|||||||
{
|
{
|
||||||
<div class="row justify-content-end">
|
<div class="row justify-content-end">
|
||||||
<div class="col text-right pt-2">
|
<div class="col text-right pt-2">
|
||||||
@Html.EditorFor(m => m.usr, new ViewDataDictionary{{"groupClass", "mb-0"}})
|
@Html.EditorFor(m => m.usr, new {@class = "click-submit", groupClass = "mb-0"})
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
|
|||||||
@@ -37,4 +37,8 @@
|
|||||||
$(this).text("Show Less");
|
$(this).text("Show Less");
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(".click-submit").on('change', function () {
|
||||||
|
$(this).parents('form:first').submit();
|
||||||
|
});
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
Reference in New Issue
Block a user