diff --git a/application/admin/view/index/index.html b/application/admin/view/index/index.html
index 0fd259a1..8faf4001 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 46764b6d..a5f4a999 100755
--- a/public/assets/js/require-form.js
+++ b/public/assets/js/require-form.js
@@ -265,7 +265,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;