Skip to content

Commit

Permalink
オプション画面でバージョン表示/バグ修正 [2.7]
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsgi committed Jul 26, 2019
1 parent 477ac78 commit 2922f82
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ chrome.storage.sync.get( null, function( items ) {
document.title = items.cpex_title || document.title;

if( items.cpex_disp_x ){
console.log(items.cpex_disp_x);
if( items.cpex_disp_x == "left" ){
document.getElementById("cp-mojisuu").style["left"] = 0;
document.getElementById("cp-mojisuu").style.right = "auto";
Expand Down Expand Up @@ -46,7 +45,7 @@ chrome.storage.sync.get( null, function( items ) {
} );

if( items.cpex_open == "true" ){
if( $(".cs_Bt")[1] && $(".cs_Bt")[1].value == "すべて開く" || $(".cs_Bt")[1].value == "Open all" ) $(".cs_Bt")[1].click();
if( $(".cs_Bt")[1] ) if( $(".cs_Bt")[1].value == "すべて開く" || $(".cs_Bt")[1].value == "Open all" ) $(".cs_Bt")[1].click();
}

if( items.cpex_attend == "true" && $("#attend").last()[0] && $("#attend").last()[0].value == "出席する" ) $("#attend").last()[0].click();
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Cpextend",
"short_name": "Cpex",
"version": "2.6",
"version": "2.7",
"description": "CoursePowerを使いやすくするChrome拡張です",
"icons": {
"16": "16.png",
Expand Down
4 changes: 4 additions & 0 deletions opt.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<input type="submit" value="設定を適用" id="apply">
</header>

<div class="form">
バージョン<span id="cpex-ver"></span>
</div>

<div class="form">
<div class="form-title">ドメイン</div>
<div class="form-content">
Expand Down
3 changes: 2 additions & 1 deletion opt.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

$( function() {
chrome.storage.sync.get(null, function(items) {
$("#cpex-ver").text( chrome.app.getDetails().version );
chrome.storage.sync.get(null, function(items) {
$("#domain").val( items.cpex_domain );
if( items.cpex_disp_x ) $("#disp-x").val( items.cpex_disp_x );
if( items.cpex_disp_y ) $("#disp-y").val( items.cpex_disp_y );
Expand Down

0 comments on commit 2922f82

Please sign in to comment.