diff --git a/Bootstrap.Admin/Content/admin-responsive.css b/Bootstrap.Admin/Content/admin-responsive.css index 45e9a18a..82afa8c0 100644 --- a/Bootstrap.Admin/Content/admin-responsive.css +++ b/Bootstrap.Admin/Content/admin-responsive.css @@ -32,7 +32,7 @@ } .form-group .form-control-url { - width: 85%; + width: 442px; } } @@ -67,6 +67,10 @@ .modal-dialog { width: 900px; } + + .form-group .form-control-url { + width: 742px; + } } @media (min-height: 672px) { diff --git a/Bootstrap.Admin/Scripts/Menus.js b/Bootstrap.Admin/Scripts/Menus.js index c92646f0..cd33ce5c 100644 --- a/Bootstrap.Admin/Scripts/Menus.js +++ b/Bootstrap.Admin/Scripts/Menus.js @@ -132,7 +132,18 @@ }); // validate - $('#dataForm').autoValidate({ + $('#dataForm').on('click', '[data-method]', function () { + var $this = $(this); + var $input = $this.parent().prev(); + switch ($this.attr('data-method')) { + case 'clear': + $input.val(""); + break; + case 'sel': + $input.select(); + break; + } + }).autoValidate({ name: { required: true, maxlength: 50 @@ -202,10 +213,6 @@ $dialogNew.show(); }); - $('#btnClearIcon, #btnMenuClearParent').on('click', function () { - $(this).parent().prev().val(""); - }); - $btnSubmitMenu.on('click', function () { var type = $(this).data('type'); switch (type) { diff --git a/Bootstrap.Admin/Views/Admin/Menus.cshtml b/Bootstrap.Admin/Views/Admin/Menus.cshtml index 4ae87e29..975a139f 100644 --- a/Bootstrap.Admin/Views/Admin/Menus.cshtml +++ b/Bootstrap.Admin/Views/Admin/Menus.cshtml @@ -14,14 +14,14 @@ @section query {
-
- - -
+
+ + +