Skip to content

Commit

Permalink
added back in grouping setting to turn off tab grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
tconfrey committed Feb 20, 2025
1 parent 5c32dde commit 9f19960
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion app/bt.css
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ textarea:focus, input[type="text"]:focus {
position: absolute;
width: 96%;
left: 2%;
height: 318px;
height: 380px;
top: 200px;
z-index: 5;
background-color: #888;
Expand Down
6 changes: 2 additions & 4 deletions app/configManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ const configManager = (() => {
// NB settings change is not visible any more but leaving ability to turn on via console for now
let groupMode = configManager.getProp('BTGroupingMode');
if (groupMode) {
// const $radio = $('#tabGroupToggle :radio[name=grouping]');
// $radio.filter(`[value=${groupMode}]`).prop('checked', true);
const $radio = $('#tabGroupToggle :radio[name=grouping]');
$radio.filter(`[value=${groupMode}]`).prop('checked', true);
GroupingMode = groupMode;
}

Expand Down Expand Up @@ -213,15 +213,13 @@ const configManager = (() => {
sendMessage({'function': 'localStore', 'data': {'BTManagerHome': newHome}});
});

/*
$('#tabGroupToggle :radio').change(function () {
const oldVal = GroupingMode;
const newVal = $(this).val();
GroupingMode = newVal;
configManager.setProp('BTGroupingMode', GroupingMode);
groupingUpdate(oldVal, newVal);
});
*/

$('#syncSetting :radio').change(async function () {
try {
Expand Down
2 changes: 1 addition & 1 deletion app/fileManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function savePendingP() {
}

async function checkBTFileVersion() {
// pass to correct file manager
// pass to correct file manager, true if sync file is newer than local
if (GDriveConnected)
return await gDriveFileManager.checkBTFileVersion();
if (LocalFileConnected)
Expand Down
31 changes: 15 additions & 16 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,6 @@
<div class="settingsFootnote">* Applies next time the Topic Manager is opened.</div>
<hr/>
</div>
<!--
<div id="settingsGrouping">
<div class="settingsSubtitle">Use Tabgroups?</div>
<div id="tabGroupToggle" class="settingsInput">
<span>
<input type="radio" id="settingsGroupingTG" name="grouping" value="TABGROUP" checked>
<label for="settingsGroupingTG">Yes</label>
</span>
<span>
<input type="radio" id="settingsGroupingTab" name="grouping" value="NONE">
<label for="settingsGroupingTab">No</label>
</span>
</div>
<hr/>
</div>
-->

<div id="settingsSync">
<div class="settingsSubtitle">Sync To:</div>
Expand Down Expand Up @@ -280,6 +264,21 @@
</div>
<hr/>
</div>

<div id="settingsGrouping">
<div class="settingsSubtitle">Use Tabgroups?</div>
<div id="tabGroupToggle" class="settingsInput">
<span>
<input type="radio" id="settingsGroupingTG" name="grouping" value="TABGROUP" checked>
<label for="settingsGroupingTG">Yes</label>
</span>
<span>
<input type="radio" id="settingsGroupingTab" name="grouping" value="NONE">
<label for="settingsGroupingTab">No</label>
</span>
</div>
<hr/>
</div>

<div id="settingsSubscription">
<div class="settingsSubtitle">Supporter Status:</div>
Expand Down

0 comments on commit 9f19960

Please sign in to comment.