正在显示
5 个修改的文件
包含
40 行增加
和
5 行删除
1 | define([], function () { | 1 | define([], function () { |
2 | - | 2 | + require.config({ |
3 | + paths: { | ||
4 | + 'jquery-colorpicker': '../addons/cms/js/jquery.colorpicker.min', | ||
5 | + 'jquery-autocomplete': '../addons/cms/js/jquery.autocomplete', | ||
6 | + 'jquery-tagsinput': '../addons/cms/js/jquery.tagsinput', | ||
7 | + 'clipboard': '../addons/cms/js/clipboard.min', | ||
8 | + }, | ||
9 | + shim: { | ||
10 | + 'jquery-colorpicker': { | ||
11 | + deps: ['jquery'], | ||
12 | + exports: '$.fn.extend' | ||
13 | + }, | ||
14 | + 'jquery-autocomplete': { | ||
15 | + deps: ['jquery'], | ||
16 | + exports: '$.fn.extend' | ||
17 | + }, | ||
18 | + 'jquery-tagsinput': { | ||
19 | + deps: ['jquery', 'jquery-autocomplete', 'css!../addons/cms/css/jquery.tagsinput.min.css'], | ||
20 | + exports: '$.fn.extend' | ||
21 | + } | ||
22 | + } | ||
23 | +}); | ||
24 | + | ||
25 | +require.config({ | ||
26 | + paths: { | ||
27 | + 'async': '../addons/example/js/async', | ||
28 | + 'BMap': ['//api.map.baidu.com/api?v=2.0&ak=mXijumfojHnAaN2VxpBGoqHM'], | ||
29 | + }, | ||
30 | + shim: { | ||
31 | + 'BMap': { | ||
32 | + deps: ['jquery'], | ||
33 | + exports: 'BMap' | ||
34 | + } | ||
35 | + } | ||
36 | +}); | ||
37 | + | ||
3 | }); | 38 | }); |
@@ -48,7 +48,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'], function ( | @@ -48,7 +48,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'], function ( | ||
48 | {field: 'id', title: 'ID'}, | 48 | {field: 'id', title: 'ID'}, |
49 | {field: 'pid', title: __('Parent')}, | 49 | {field: 'pid', title: __('Parent')}, |
50 | {field: 'name', title: __('Name'), align: 'left', formatter:function (value, row, index) { | 50 | {field: 'name', title: __('Name'), align: 'left', formatter:function (value, row, index) { |
51 | - return value.toString().replace(/(&|&)nbsp;/g, ''); | 51 | + return value.toString().replace(/(&|&)nbsp;/g, ' '); |
52 | } | 52 | } |
53 | }, | 53 | }, |
54 | {field: 'status', title: __('Status'), formatter: Table.api.formatter.status}, | 54 | {field: 'status', title: __('Status'), formatter: Table.api.formatter.status}, |
@@ -121,7 +121,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template'], function | @@ -121,7 +121,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template'], function | ||
121 | api: { | 121 | api: { |
122 | formatter: { | 122 | formatter: { |
123 | title: function (value, row, index) { | 123 | title: function (value, row, index) { |
124 | - value = value.toString().replace(/(&|&)nbsp;/g, ''); | 124 | + value = value.toString().replace(/(&|&)nbsp;/g, ' '); |
125 | return !row.ismenu || row.status == 'hidden' ? "<span class='text-muted'>" + value + "</span>" : value; | 125 | return !row.ismenu || row.status == 'hidden' ? "<span class='text-muted'>" + value + "</span>" : value; |
126 | }, | 126 | }, |
127 | name: function (value, row, index) { | 127 | name: function (value, row, index) { |
@@ -29,7 +29,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | @@ -29,7 +29,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | ||
29 | {field: 'id', title: __('Id')}, | 29 | {field: 'id', title: __('Id')}, |
30 | {field: 'type', title: __('Type'), operate: false, searchList: Config.searchList, formatter: Table.api.formatter.label}, | 30 | {field: 'type', title: __('Type'), operate: false, searchList: Config.searchList, formatter: Table.api.formatter.label}, |
31 | {field: 'name', title: __('Name'), align: 'left', formatter:function (value, row, index) { | 31 | {field: 'name', title: __('Name'), align: 'left', formatter:function (value, row, index) { |
32 | - return value.toString().replace(/(&|&)nbsp;/g, ''); | 32 | + return value.toString().replace(/(&|&)nbsp;/g, ' '); |
33 | } | 33 | } |
34 | }, | 34 | }, |
35 | {field: 'nickname', title: __('Nickname')}, | 35 | {field: 'nickname', title: __('Nickname')}, |
@@ -27,7 +27,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | @@ -27,7 +27,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | ||
27 | {field: 'id', title: __('Id')}, | 27 | {field: 'id', title: __('Id')}, |
28 | {field: 'pid', title: __('Pid'), visible: false}, | 28 | {field: 'pid', title: __('Pid'), visible: false}, |
29 | {field: 'title', title: __('Title'), align: 'left', formatter:function (value, row, index) { | 29 | {field: 'title', title: __('Title'), align: 'left', formatter:function (value, row, index) { |
30 | - return value.toString().replace(/(&|&)nbsp;/g, ''); | 30 | + return value.toString().replace(/(&|&)nbsp;/g, ' '); |
31 | } | 31 | } |
32 | }, | 32 | }, |
33 | {field: 'name', title: __('Name'), align: 'left'}, | 33 | {field: 'name', title: __('Name'), align: 'left'}, |
-
请 注册 或 登录 后发表评论