Merge pull request #9 from jsavargas/2022.10.02

remove buttons 'select all' and unInstall
This commit is contained in:
UnRAID_ES 2022-10-01 23:25:22 -03:00 committed by GitHub
commit aa2c6e4f95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 36 deletions

Binary file not shown.

View File

@ -3,8 +3,8 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "NerdTools">
<!ENTITY author "UnRAIDES">
<!ENTITY version "2022.09.30a">
<!ENTITY md5 "91976cb7d3ff8ebe37aad17b0ea78304">
<!ENTITY version "2022.10.01">
<!ENTITY md5 "fe0de831dc037540cf55d9411721165b">
<!ENTITY launch "Settings/&name;">
<!ENTITY github "UnRAIDES/unRAID-&name;">
<!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/main/plugin/&name;.plg">

View File

@ -29,7 +29,7 @@ table.tablesorter tbody tr:nth-child(even) {
<th class="filter-downloaded" data-placeholder="by download"> Downloaded </th>
<th class="filter-installed" data-placeholder="by install"> Installed </th>
<th class="filter-plugins" data-placeholder="Search..."> Plugins </th>
<th class="parser-false filter-false" nowrap="nowrap"><input class="uninstallpkg" type="checkbox"><input class="checkall" type="checkbox"></th>
<th class="parser-false filter-false" nowrap="nowrap"></th>
</tr>
</thead>
<tbody>

View File

@ -18,33 +18,9 @@ $(function(){
}
}
});
// "uninstall package" switch and cookie
$('.uninstallpkg')
.switchButton({
labels_placement: 'right',
on_label: 'unInstall',
off_label: 'unInstall',
checked: $.cookie('nerdpack_packages_uninstall') == '--uninstall'
})
.change(function () {
$.cookie('nerdpack_packages_uninstall', $('.uninstallpkg')[0].checked ? '--uninstall' : '', { expires: 3650 });
});
// select all packages switch
$('.checkall')
.switchButton({
labels_placement: 'right',
on_label: 'Select All',
off_label: 'Select All',
checked: $.cookie('nerdpack_checkall') == 'yes'
})
.change(function () {
var myval = $(this)[0].checked;
$.cookie('nerdpack_checkall', myval ? 'yes' : 'no', { expires: 3650 });
$('#tblPackages tbody td:visible .pkgcheckbox').switchButton({checked: myval});
});
$.cookie('nerdpack_checkall', 'no', { expires: 3650 });
$.cookie('nerdpack_packages_uninstall', '--uninstall', { expires: 3650 });
$('#btnApply').click(Apply);
var url = window.location.href.split("?");
@ -165,7 +141,7 @@ function checkDepends() {
$('#ncurses-terminfo', '.pkgvalue').val('yes');
}
} catch (error) {
console.error(error);
console.error('Error checkDepends' + error);
}
try {
if ($('#expect')[0].checked) {
@ -173,7 +149,7 @@ function checkDepends() {
$('#tcl', '.pkgvalue').val('yes');
}
} catch (error) {
console.error(error);
console.error('Error checkDepends' + error);
}
try {
if ($('#iotop')[0].checked) {
@ -181,7 +157,7 @@ function checkDepends() {
$('#python2', '.pkgvalue').val('yes');
}
} catch (error) {
console.error(error);
console.error('Error checkDepends' + error);
}
try {
if ($('#vim')[0].checked) {
@ -189,7 +165,7 @@ function checkDepends() {
$('#libsodium', '.pkgvalue').val('yes');
}
} catch (error) {
console.error(error);
console.error('Error checkDepends' + error);
}
try {
if ($('#borgbackup')[0].checked) {
@ -201,7 +177,7 @@ function checkDepends() {
$('#llfuse', '.pkgvalue').val('yes');
}
} catch (error) {
console.error(error);
console.error('Error checkDepends' + error);
}
try {
if ($('#irssi')[0].checked) {
@ -209,6 +185,6 @@ function checkDepends() {
$('#utf8proc', '.pkgvalue').val('yes');
}
} catch (error) {
console.error(error);
console.error('Error checkDepends' + error);
}
}