|
@@ -91,6 +91,18 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
});
|
|
|
};
|
|
|
Form.api.bindevent($("form[role=form]"));
|
|
|
+
|
|
|
+ // 分类名称字数统计
|
|
|
+ $('#c-name').on('input', function(){
|
|
|
+ var len = $(this).val().length;
|
|
|
+ $('#category-name-count').text(len + '/8');
|
|
|
+ });
|
|
|
+
|
|
|
+ // 编辑页面初始化字数统计
|
|
|
+ if ($('#c-name').val()) {
|
|
|
+ var len = $('#c-name').val().length;
|
|
|
+ $('#category-name-count').text(len + '/8');
|
|
|
+ }
|
|
|
$(document).on('click', ".btn-search-icon", function () {
|
|
|
if (iconlist.length == 0) {
|
|
|
$.getJSON(Config.site.cdnurl + "/assets/addons/shop/shopicon/iconfont.json", function (ret) {
|