Skip to content

Commit

Permalink
0.8.16.28 fix 'auto offset feature cannot close in option'
Browse files Browse the repository at this point in the history
  • Loading branch information
jjj201200 committed May 13, 2017
1 parent a87ecb4 commit 745bb72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/live-content-script.js
Expand Up @@ -54,7 +54,6 @@ if (options['chat']) {
window.LivePlayer.sendMsg(text.substr(0, options['chat']['maxLength']), colorStr, options['chat']['danmuMode'][mode]);
text = text.substr(options['chat']['maxLength']);
if (text.length > 0) {
console.warn(text);
setTimeout(function() {
sendDamu();
}, 4000);
Expand Down
10 changes: 10 additions & 0 deletions src/options.js
Expand Up @@ -91,6 +91,7 @@ $(document).ready(function() {
// $("div[option=\"" + bkg_page.getOption("support") + "\"].support").addClass("on");
$('div[option="' + bkg_page.getOption('dlquality') + '"].dlquality').addClass('on');
$('div[option="' + bkg_page.getOption('autowide') + '"].autowide').addClass('on');
$('div[option="' + bkg_page.getOption('autooffset') + '"].autooffset').addClass('on');
$('div[option="' + bkg_page.getOption('indexversion') + '"].indexversion').addClass('on');
$('div[option="' + bkg_page.getOption('rel_search') + '"].rel_search').addClass('on');
$('div[option="' + bkg_page.getOption('doSign') + '"].doSign').addClass('on');
Expand Down Expand Up @@ -238,6 +239,15 @@ $(document).ready(function() {
bkg_page.setOption('autowide', $(this).attr('option'));
// updatepreview();
});
$('.autooffset').click(function() {
if ($(this).hasClass('on')) {
return false;
}
$('.autooffset').removeClass('on');
$(this).addClass('on');
bkg_page.setOption('autooffset', $(this).attr('option'));
// updatepreview();
});
$('.doSign').click(function() {
if ($(this).hasClass('on')) {
return false;
Expand Down

0 comments on commit 745bb72

Please sign in to comment.