Commit 6b202706c19f254eac75ea0fa392055ee1986b0b
Merge branch 'new_Kira' into fixbug
Showing
1 changed file
with
2 additions
and
1 deletions
src/js/gbreplayer.js
| ... | ... | @@ -388,6 +388,7 @@ $(function(){ |
| 388 | 388 | ,allowSeek: false |
| 389 | 389 | ,playCallback: function(){ // 播放 |
| 390 | 390 | playCode(); |
| 391 | + GBCodePlayBack.htmlplayereditor.setOption('readOnly', true); | |
| 391 | 392 | } |
| 392 | 393 | ,pauseCallback: function(){ // 暂停 |
| 393 | 394 | GBCodePlayBack.audioTime = parseInt(player.elements.audioDom.currentTime*1000) |
| ... | ... | @@ -395,7 +396,7 @@ $(function(){ |
| 395 | 396 | pauseCode(); |
| 396 | 397 | GBCodePlayBack.firstPlay = 0; |
| 397 | 398 | GBCodePlayBack.pauseValue = GBCodePlayBack.htmlplayereditor.getValue(); |
| 398 | - $('#readonly').trigger('click'); | |
| 399 | + GBCodePlayBack.htmlplayereditor.setOption('readOnly', false); | |
| 399 | 400 | } |
| 400 | 401 | ,seekedCallback: function(){} // 拖拽 |
| 401 | 402 | ,endedCallback: function(){ // 结束播放 | ... | ... |