Commit a4fcdb8e88b1c22a84082ad514f1bc404313851d

Authored by ykxie
1 parent 8e324bfa

提示不全

Showing 1 changed file with 4 additions and 5 deletions
src/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>&nbsp;代码播放编辑器“<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>&nbsp;代码播放编辑器“<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>&nbsp;代码播放编辑器“<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>&nbsp;代码播放编辑器“<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>&nbsp;代码播放编辑器“<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>&nbsp;代码播放编辑器“<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>&nbsp;代码播放编辑器“<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>&nbsp;代码播放编辑器“<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 编辑器只读提示*/