diff --git a/application/admin/view/index/index.html b/application/admin/view/index/index.html index 0fd259a191904e4f57a8c69da707c0a5071d0e7e..8faf4001ae3e7658ea3bad9b954ad4456bdf5dcd 100644 --- a/application/admin/view/index/index.html +++ b/application/admin/view/index/index.html @@ -28,12 +28,12 @@
{if $fixedmenu}
- +
{/if} {if $referermenu}
- +
{/if}
diff --git a/public/assets/js/require-form.js b/public/assets/js/require-form.js index 20e2a392259b7974bf37a108f7cc5c85615e6d42..94a4ecf89246c94956240fcc620cfa45c5cb54d3 100755 --- a/public/assets/js/require-form.js +++ b/public/assets/js/require-form.js @@ -256,7 +256,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator', 'validator-lang'], functio var url = $(this).data("url") ? $(this).data("url") : (typeof Backend !== 'undefined' ? "general/attachment/select" : "user/attachment"); parent.Fast.api.open(url + "?element_id=" + $(this).attr("id") + "&multiple=" + multiple + "&mimetype=" + mimetype + "&admin_id=" + admin_id + "&user_id=" + user_id, __('Choose'), { callback: function (data) { - var button = $("#" + $(that).attr("id")); + var button = $(that); var maxcount = $(button).data("maxcount"); var input_id = $(button).data("input-id") ? $(button).data("input-id") : ""; maxcount = typeof maxcount !== "undefined" ? maxcount : 0;