2.2.0 Pushing beta to prod, lots of changes
This commit is contained in:
parent
db8cb0865a
commit
58d46ec544
16 changed files with 752 additions and 399 deletions
|
@ -112,12 +112,15 @@ function updateMessage(msg) {
|
|||
msgIndex++;
|
||||
}
|
||||
}
|
||||
function updateStatus(msg) {
|
||||
$('#status').html(msg);
|
||||
if ($('#tabLibrary').not(':visible')) {
|
||||
if ($('#status').html() != '') {
|
||||
$('#status').fadeIn();
|
||||
}
|
||||
function updateStatus(el, msg) {
|
||||
if (msg == '') {
|
||||
$(el).html('0 song(s), 00:00:00 total time');
|
||||
} else {
|
||||
$(el).html(msg);
|
||||
}
|
||||
if ($(el).html() != '') {
|
||||
$(el).addClass('on');
|
||||
$(el).fadeIn();
|
||||
}
|
||||
}
|
||||
// Convert to unicode support
|
||||
|
@ -254,6 +257,21 @@ function checkVersion(runningVersion, minimumVersion) {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
function checkVersionNewer(runningVersion, newVersion) {
|
||||
if (runningVersion.major < newVersion.major) {
|
||||
return true;
|
||||
} else {
|
||||
if (runningVersion.minor < newVersion.minor) {
|
||||
return true;
|
||||
} else {
|
||||
if (runningVersion.patch < newVersion.patch) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function switchTheme(theme) {
|
||||
switch (theme) {
|
||||
case 'dark':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue