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,6 +388,7 @@ $(function(){ | ||
| 388 | ,allowSeek: false | 388 | ,allowSeek: false |
| 389 | ,playCallback: function(){ // 播放 | 389 | ,playCallback: function(){ // 播放 |
| 390 | playCode(); | 390 | playCode(); |
| 391 | + GBCodePlayBack.htmlplayereditor.setOption('readOnly', true); | ||
| 391 | } | 392 | } |
| 392 | ,pauseCallback: function(){ // 暂停 | 393 | ,pauseCallback: function(){ // 暂停 |
| 393 | GBCodePlayBack.audioTime = parseInt(player.elements.audioDom.currentTime*1000) | 394 | GBCodePlayBack.audioTime = parseInt(player.elements.audioDom.currentTime*1000) |
| @@ -395,7 +396,7 @@ $(function(){ | @@ -395,7 +396,7 @@ $(function(){ | ||
| 395 | pauseCode(); | 396 | pauseCode(); |
| 396 | GBCodePlayBack.firstPlay = 0; | 397 | GBCodePlayBack.firstPlay = 0; |
| 397 | GBCodePlayBack.pauseValue = GBCodePlayBack.htmlplayereditor.getValue(); | 398 | GBCodePlayBack.pauseValue = GBCodePlayBack.htmlplayereditor.getValue(); |
| 398 | - $('#readonly').trigger('click'); | 399 | + GBCodePlayBack.htmlplayereditor.setOption('readOnly', false); |
| 399 | } | 400 | } |
| 400 | ,seekedCallback: function(){} // 拖拽 | 401 | ,seekedCallback: function(){} // 拖拽 |
| 401 | ,endedCallback: function(){ // 结束播放 | 402 | ,endedCallback: function(){ // 结束播放 |