Browse Source

释放焦点,防止打开后按回车反复弹出(I5AA4V)

RuoYi 3 năm trước cách đây
mục cha
commit
5c5961f1b4
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

+ 9 - 0
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

@@ -883,6 +883,9 @@ var table = {
                     yes: callback,
                     cancel: function(index) {
                         return true;
+                    },
+                    success: function () {
+                        $(':focus').blur();
                     }
                 });
             },
@@ -929,6 +932,9 @@ var table = {
                     yes: options.yes,
                     cancel: function () {
                         return true;
+                    },
+                    success: function () {
+                        $(':focus').blur();
                     }
                 }, btnCallback));
                 if ($.common.isNotEmpty(options.full) && options.full === true) {
@@ -972,6 +978,9 @@ var table = {
                     },
                     cancel: function(index) {
                         return true;
+                    },
+                    success: function () {
+                        $(':focus').blur();
                     }
                 });
                 top.layer.full(index);