1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix duplicate day name issue

This commit is contained in:
Luke Pulverenti 2013-12-26 21:23:57 -05:00
parent b24a74b9eb
commit 92c1a9acb0
4 changed files with 52 additions and 18 deletions

View file

@ -128,18 +128,27 @@ var Dashboard = {
}, 2000);
},
alert: function (message) {
alert: function (options) {
$.mobile.loading('show', {
theme: "b",
text: message,
textonly: true,
textVisible: true
});
if (typeof options == "string") {
setTimeout(function () {
$.mobile.loading('hide');
}, 4000);
var message = options;
$.mobile.loading('show', {
theme: "b",
text: message,
textonly: true,
textVisible: true
});
setTimeout(function () {
$.mobile.loading('hide');
}, 4000);
return;
}
Dashboard.confirmInternal(options.message, options.title || 'Alert', false, options.callback);
},
updateSystemInfo: function (info) {
@ -372,7 +381,7 @@ var Dashboard = {
Dashboard.alert("Settings saved.");
},
confirm: function (message, title, callback) {
confirmInternal: function (message, title, showCancel, callback) {
$('#confirmFlyout').popup("close").remove();
@ -389,7 +398,11 @@ var Dashboard = {
html += '</div>';
html += '<p><button type="button" data-icon="check" onclick="$(\'#confirmFlyout\')[0].confirm=true;$(\'#confirmFlyout\').popup(\'close\');" data-theme="b">Ok</button></p>';
html += '<p><button type="button" data-icon="delete" onclick="$(\'#confirmFlyout\').popup(\'close\');" data-theme="a">Cancel</button></p>';
if (showCancel) {
html += '<p><button type="button" data-icon="delete" onclick="$(\'#confirmFlyout\').popup(\'close\');" data-theme="a">Cancel</button></p>';
}
html += '</div>';
html += '</div>';
@ -406,6 +419,10 @@ var Dashboard = {
});
},
confirm: function (message, title, callback) {
Dashboard.confirmInternal(message, title, true, callback);
},
refreshSystemInfoFromServer: function () {
ApiClient.getSystemInfo().done(function (info) {
@ -633,7 +650,7 @@ var Dashboard = {
for (var i = 0, length = links.length; i < length; i++) {
var link = links[i];
if (link.divider) {
html += "<div class='sidebarDivider'></div>";
}
@ -1157,7 +1174,10 @@ var Dashboard = {
dialog.close();
ApiClient.createPackageReview(review).done(function () {
Dashboard.alert("Thank you for your review");
Dashboard.alert({
message: "Thank you for your review",
title: "Thank You"
});
});
}
});