Merge branch 'test5.7.1' into gray
Showing
1 changed file
with
5 additions
and
1 deletions
@@ -2132,10 +2132,14 @@ $(document).on('change', '.link-resource', function() { | @@ -2132,10 +2132,14 @@ $(document).on('change', '.link-resource', function() { | ||
2132 | var linkType = Bll.moduleGrid.__rows[index].linkType; | 2132 | var linkType = Bll.moduleGrid.__rows[index].linkType; |
2133 | 2133 | ||
2134 | var resource; | 2134 | var resource; |
2135 | + var text; | ||
2136 | + var selectIndex; | ||
2135 | // 商品分类 | 2137 | // 商品分类 |
2136 | if(linkType == 0) { | 2138 | if(linkType == 0) { |
2137 | resource = $(this).find('.category-resource').val(); | 2139 | resource = $(this).find('.category-resource').val(); |
2138 | resource = !!~resource ? resource : ""; | 2140 | resource = !!~resource ? resource : ""; |
2141 | + selectIndex = $(this).find('.category-resource')[0].options.selectedIndex; | ||
2142 | + text = $(this).find('.category-resource')[0].options[selectIndex].text; | ||
2139 | } else { | 2143 | } else { |
2140 | resource = $(this).find('.input-resource').val(); | 2144 | resource = $(this).find('.input-resource').val(); |
2141 | resource = $.trim(resource); | 2145 | resource = $.trim(resource); |
@@ -2152,7 +2156,7 @@ $(document).on('change', '.link-resource', function() { | @@ -2152,7 +2156,7 @@ $(document).on('change', '.link-resource', function() { | ||
2152 | } | 2156 | } |
2153 | 2157 | ||
2154 | Bll.moduleGrid.__rows[index].resource = resource; | 2158 | Bll.moduleGrid.__rows[index].resource = resource; |
2155 | - | 2159 | + Bll.moduleGrid.__rows[index].text = text; |
2156 | Bll.moduleGrid.reload(); | 2160 | Bll.moduleGrid.reload(); |
2157 | }); | 2161 | }); |
2158 | 2162 |
-
Please register or login to post a comment