Commit b7753166f7674961c80632c9533cbf22b474e85b
1 parent
a4fcdb8e
灰度
Showing
1 changed file
with
4 additions
and
5 deletions
dist/js/gbreplayer.js
| @@ -1062,15 +1062,14 @@ $(function(){ | @@ -1062,15 +1062,14 @@ $(function(){ | ||
| 1062 | $this.addClass('disabled'); | 1062 | $this.addClass('disabled'); |
| 1063 | 1063 | ||
| 1064 | if(roflag){ | 1064 | if(roflag){ |
| 1065 | - editors.popover({placement:'right', container: 'body', html:true, content:'<div class="text-success"><span class="glyphicon glyphicon-hand-left"></span> 代码播放编辑器“<b>已启用</b>”</div>'}).popover('show'); | 1065 | + // editors.popover({placement:'right', container: 'body', html:true, content:'<div class="text-success"><span class="glyphicon glyphicon-hand-left"></span> 代码播放编辑器“<b>已启用</b>”</div>'}).popover('show'); |
| 1066 | 1066 | ||
| 1067 | GBCodePlayBack.htmlplayereditor.setOption('readOnly', false); | 1067 | GBCodePlayBack.htmlplayereditor.setOption('readOnly', false); |
| 1068 | GBCodePlayBack.cssplayereditor.setOption('readOnly', false); | 1068 | GBCodePlayBack.cssplayereditor.setOption('readOnly', false); |
| 1069 | GBCodePlayBack.jsplayereditor.setOption('readOnly', false); | 1069 | GBCodePlayBack.jsplayereditor.setOption('readOnly', false); |
| 1070 | $this.data('readonly', 0).find('span').toggleClass('glyphicon-ban-circle').toggleClass('glyphicon-pencil').end().toggleClass('btn-danger').toggleClass('btn-success'); | 1070 | $this.data('readonly', 0).find('span').toggleClass('glyphicon-ban-circle').toggleClass('glyphicon-pencil').end().toggleClass('btn-danger').toggleClass('btn-success'); |
| 1071 | }else{ | 1071 | }else{ |
| 1072 | - editors.popover({placement:'right', container: 'body', html:true, content:'<div class="text-success"><span class="glyphicon glyphicon-hand-left"></span> 代码播放编辑器“<b>目前只读</b>”</div>'}).popover('show'); | ||
| 1073 | - | 1072 | + // editors.popover({placement:'right', container: 'body', html:true, content:'<div class="text-success"><span class="glyphicon glyphicon-hand-left"></span> 代码播放编辑器“<b>目前只读</b>”</div>'}).popover('show'); |
| 1074 | 1073 | ||
| 1075 | GBCodePlayBack.htmlplayereditor.setOption('readOnly', true); | 1074 | GBCodePlayBack.htmlplayereditor.setOption('readOnly', true); |
| 1076 | GBCodePlayBack.cssplayereditor.setOption('readOnly', true); | 1075 | GBCodePlayBack.cssplayereditor.setOption('readOnly', true); |
| @@ -1102,9 +1101,9 @@ $(function(){ | @@ -1102,9 +1101,9 @@ $(function(){ | ||
| 1102 | $this.addClass('disabled'); | 1101 | $this.addClass('disabled'); |
| 1103 | 1102 | ||
| 1104 | if(roflag){ | 1103 | if(roflag){ |
| 1105 | - editors.popover({placement:'right', container: 'body', html:true, content:'<div class="text-success"><span class="glyphicon glyphicon-hand-left"></span> 代码播放编辑器“<b>已启用</b>”</div>'}).popover('show'); | 1104 | + // editors.popover({placement:'right', container: 'body', html:true, content:'<div class="text-success"><span class="glyphicon glyphicon-hand-left"></span> 代码播放编辑器“<b>已启用</b>”</div>'}).popover('show'); |
| 1106 | }else{ | 1105 | }else{ |
| 1107 | - editors.popover({placement:'right', container: 'body', html:true, content:'<div class="text-primary"><span class="glyphicon glyphicon-hand-left"></span> 代码播放编辑器“<b>目前只读</b>”</div>'}).popover('show'); | 1106 | + // editors.popover({placement:'right', container: 'body', html:true, content:'<div class="text-primary"><span class="glyphicon glyphicon-hand-left"></span> 代码播放编辑器“<b>目前只读</b>”</div>'}).popover('show'); |
| 1108 | } | 1107 | } |
| 1109 | setTimeout(function(){editors.popover('destroy');$this.removeClass('disabled');}, 1500); | 1108 | setTimeout(function(){editors.popover('destroy');$this.removeClass('disabled');}, 1500); |
| 1110 | /* END of popover 编辑器只读提示*/ | 1109 | /* END of popover 编辑器只读提示*/ |