fix stickyheaders for new themes
add status for installed
This commit is contained in:
parent
70cf2fcef6
commit
d60bab3499
|
@ -4,8 +4,9 @@ $(function(){
|
||||||
sortList: [[0,0]],
|
sortList: [[0,0]],
|
||||||
widgets: ['saveSort', 'filter', 'stickyHeaders', 'zebra'],
|
widgets: ['saveSort', 'filter', 'stickyHeaders', 'zebra'],
|
||||||
widgetOptions: {
|
widgetOptions: {
|
||||||
stickyHeaders_filteredToTop: false,
|
stickyHeaders_filteredToTop: true,
|
||||||
//stickyHeaders_yScroll: $('.page_nerdpack'),
|
stickyHeaders_attachTo: null,
|
||||||
|
stickyHeaders_offset: ($('#header').css("position") === "fixed") ? '90' : '0',
|
||||||
filter_hideEmpty: true,
|
filter_hideEmpty: true,
|
||||||
filter_liveSearch: true,
|
filter_liveSearch: true,
|
||||||
filter_saveFilters: true,
|
filter_saveFilters: true,
|
||||||
|
@ -19,7 +20,7 @@ $(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
// "uninstall package" switch and cookie
|
// "uninstall package" switch and cookie
|
||||||
$('#uninstallpkg')
|
$('.uninstallpkg')
|
||||||
.switchButton({
|
.switchButton({
|
||||||
labels_placement: 'right',
|
labels_placement: 'right',
|
||||||
on_label: 'unInstall On',
|
on_label: 'unInstall On',
|
||||||
|
@ -31,7 +32,7 @@ $(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
// select all packages switch
|
// select all packages switch
|
||||||
$('#checkall')
|
$('.checkall')
|
||||||
.switchButton({
|
.switchButton({
|
||||||
labels_placement: 'right',
|
labels_placement: 'right',
|
||||||
on_label: 'Select All',
|
on_label: 'Select All',
|
||||||
|
@ -62,11 +63,16 @@ function packageQuery(force) {
|
||||||
var Downloaded = data.packages[i].downloaded;
|
var Downloaded = data.packages[i].downloaded;
|
||||||
var DownloadEQ = data.packages[i].downloadeq;
|
var DownloadEQ = data.packages[i].downloadeq;
|
||||||
var Installed = data.packages[i].installed;
|
var Installed = data.packages[i].installed;
|
||||||
if (DownloadEQ == Downloaded && data.packages[i].installeq == Installed){
|
var InstallEQ = data.packages[i].installeq;
|
||||||
if (Installed == "yes")
|
if (DownloadEQ == Downloaded && InstallEQ == Installed){
|
||||||
Update = "<span><i class='uptodate fa fa-check'></i> up-to-date </span>";
|
if (Installed == "yes"){
|
||||||
else
|
if (Downloaded == "no")
|
||||||
|
Update = "<span ><i class='installed fa fa-check-circle'></i> installed</span>";
|
||||||
|
else
|
||||||
|
Update = "<span><i class='uptodate fa fa-check'></i> up-to-date </span>";
|
||||||
|
}else{
|
||||||
Update = "<span><i class='uninstalled fa fa-info-circle'></i> uninstalled </span>";
|
Update = "<span><i class='uninstalled fa fa-info-circle'></i> uninstalled </span>";
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
Update = "<span ><a class='update'><i class='updateready fa fa-cloud-download'></i> update ready </a></span>";
|
Update = "<span ><a class='update'><i class='updateready fa fa-cloud-download'></i> update ready </a></span>";
|
||||||
Ready = true;
|
Ready = true;
|
||||||
|
@ -79,7 +85,7 @@ function packageQuery(force) {
|
||||||
if (data.packages[i].config == "yes"){
|
if (data.packages[i].config == "yes"){
|
||||||
Checked = "checked";
|
Checked = "checked";
|
||||||
Count++;
|
Count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#tblPackages tbody').append("<tr>"+
|
$('#tblPackages tbody').append("<tr>"+
|
||||||
"<td class='package' title='"+data.packages[i].desc+"'>"+data.packages[i].name+"</td>"+ // package name
|
"<td class='package' title='"+data.packages[i].desc+"'>"+data.packages[i].name+"</td>"+ // package name
|
||||||
|
@ -155,6 +161,10 @@ function checkDepends() {
|
||||||
$('#utempter').switchButton({checked: true});
|
$('#utempter').switchButton({checked: true});
|
||||||
$('#utempter', '.pkgvalue').val('yes');
|
$('#utempter', '.pkgvalue').val('yes');
|
||||||
}
|
}
|
||||||
|
if ($('#expect')[0].checked) {
|
||||||
|
$('#tcl').switchButton({checked: true});
|
||||||
|
$('#tcl', '.pkgvalue').val('yes');
|
||||||
|
}
|
||||||
if ($('#iotop')[0].checked) {
|
if ($('#iotop')[0].checked) {
|
||||||
$('#python').switchButton({checked: true});
|
$('#python').switchButton({checked: true});
|
||||||
$('#python', '.pkgvalue').val('yes');
|
$('#python', '.pkgvalue').val('yes');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user