正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
@@ -423,9 +423,8 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table | @@ -423,9 +423,8 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table | ||
423 | var yes = typeof this.yes !== 'undefined' ? this.yes : 1; | 423 | var yes = typeof this.yes !== 'undefined' ? this.yes : 1; |
424 | var no = typeof this.no !== 'undefined' ? this.no : 0; | 424 | var no = typeof this.no !== 'undefined' ? this.no : 0; |
425 | return "<a href='javascript:;' data-toggle='tooltip' title='" + __('Click to toggle') + "' class='btn-change' data-id='" | 425 | return "<a href='javascript:;' data-toggle='tooltip' title='" + __('Click to toggle') + "' class='btn-change' data-id='" |
426 | - + row.id + "' data-params='" + this.field + "=" + (value ? no : yes) + "'><i class='fa fa-toggle-on " + (value == yes ? 'text-' + color : 'fa-flip-horizontal text-gray') + " fa-2x'></i></a>"; | ||
427 | - } | ||
428 | - , | 426 | + + row.id + "' data-params='" + this.field + "=" + (value == yes ? no : yes) + "'><i class='fa fa-toggle-on " + (value == yes ? 'text-' + color : 'fa-flip-horizontal text-gray') + " fa-2x'></i></a>"; |
427 | + }, | ||
429 | url: function (value, row, index) { | 428 | url: function (value, row, index) { |
430 | return '<div class="input-group input-group-sm" style="width:250px;margin:0 auto;"><input type="text" class="form-control input-sm" value="' + value + '"><span class="input-group-btn input-group-sm"><a href="' + value + '" target="_blank" class="btn btn-default btn-sm"><i class="fa fa-link"></i></a></span></div>'; | 429 | return '<div class="input-group input-group-sm" style="width:250px;margin:0 auto;"><input type="text" class="form-control input-sm" value="' + value + '"><span class="input-group-btn input-group-sm"><a href="' + value + '" target="_blank" class="btn btn-default btn-sm"><i class="fa fa-link"></i></a></span></div>'; |
431 | }, | 430 | }, |
-
请 注册 或 登录 后发表评论