Merge branch 'master-v32-xwx' into 'master'
浙江-我的收藏夹-收藏夹名称不能为空 See merge request !31
Showing
1 changed file
with
10 additions
and
4 deletions
@@ -56,10 +56,16 @@ layui.define(['table', 'admin', 'form', 'common', 'sessions', 'reslist', 'common | @@ -56,10 +56,16 @@ layui.define(['table', 'admin', 'form', 'common', 'sessions', 'reslist', 'common | ||
56 | area:['320px','170px'], | 56 | area:['320px','170px'], |
57 | yes:function (index,layero) { | 57 | yes:function (index,layero) { |
58 | var favoritesName = $(layero).find('input[name=favoritesName]').val(); | 58 | var favoritesName = $(layero).find('input[name=favoritesName]').val(); |
59 | - saveFavorite(null,favoritesName,parentId); | ||
60 | - $("e.empty").hide(); | ||
61 | - //刷新列表 | ||
62 | - loadFavoriteList(parentId); | 59 | + // Start xwx 2021/11/1 新建文件夹名称不能为空 |
60 | + if (favoritesName!=''){ | ||
61 | + saveFavorite(null,favoritesName,parentId); | ||
62 | + $("e.empty").hide(); | ||
63 | + //刷新列表 | ||
64 | + loadFavoriteList(parentId); | ||
65 | + }else { | ||
66 | + layer.msg('收藏夹名称不能为空', {icon: 0, time: 3000}); | ||
67 | + } | ||
68 | + // End xwx 2021/11/1 新建文件夹名称不能为空 | ||
63 | } | 69 | } |
64 | }); | 70 | }); |
65 | }); | 71 | }); |
-
Please register or login to post a comment