diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index cbecf562a..9ca8f752c 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/.bower.json +++ b/dashboard-ui/bower_components/emby-webcomponents/.bower.json @@ -15,12 +15,12 @@ }, "devDependencies": {}, "ignore": [], - "version": "1.0.95", - "_release": "1.0.95", + "version": "1.0.96", + "_release": "1.0.96", "_resolution": { "type": "version", - "tag": "1.0.95", - "commit": "42219487ac4733e83807f9995433ec8485ad1c65" + "tag": "1.0.96", + "commit": "b77e4d74466f5960adc27e2cb7b55ef3d22f14dd" }, "_source": "git://github.com/MediaBrowser/emby-webcomponents.git", "_target": "~1.0.0", diff --git a/dashboard-ui/bower_components/emby-webcomponents/toast/toast.js b/dashboard-ui/bower_components/emby-webcomponents/toast/toast.js index 5e92c19d4..957df7f09 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/toast/toast.js +++ b/dashboard-ui/bower_components/emby-webcomponents/toast/toast.js @@ -4,6 +4,12 @@ define(['paper-toast'], function () { return function (options) { + if (typeof options === 'string') { + options = { + text: options + }; + } + var elem = document.createElement("paper-toast"); elem.setAttribute('text', options.text); elem.id = 'toast' + (toastId++); diff --git a/dashboard-ui/bower_components/paper-behaviors/.bower.json b/dashboard-ui/bower_components/paper-behaviors/.bower.json index 2b04bf9f8..a6b333d33 100644 --- a/dashboard-ui/bower_components/paper-behaviors/.bower.json +++ b/dashboard-ui/bower_components/paper-behaviors/.bower.json @@ -45,7 +45,7 @@ "tag": "v1.0.11", "commit": "e3c1ab0c72905b58fb4d9adc2921ea73b5c085a5" }, - "_source": "git://github.com/PolymerElements/paper-behaviors.git", + "_source": "git://github.com/polymerelements/paper-behaviors.git", "_target": "^1.0.0", - "_originalSource": "PolymerElements/paper-behaviors" + "_originalSource": "polymerelements/paper-behaviors" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/paper-ripple/.bower.json b/dashboard-ui/bower_components/paper-ripple/.bower.json index 157225ee7..2f654d71c 100644 --- a/dashboard-ui/bower_components/paper-ripple/.bower.json +++ b/dashboard-ui/bower_components/paper-ripple/.bower.json @@ -32,14 +32,14 @@ "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0" }, "ignore": [], - "homepage": "https://github.com/PolymerElements/paper-ripple", + "homepage": "https://github.com/polymerelements/paper-ripple", "_release": "1.0.5", "_resolution": { "type": "version", "tag": "v1.0.5", "commit": "d72e7a9a8ab518b901ed18dde492df3b87a93be5" }, - "_source": "git://github.com/PolymerElements/paper-ripple.git", + "_source": "git://github.com/polymerelements/paper-ripple.git", "_target": "^1.0.0", - "_originalSource": "PolymerElements/paper-ripple" + "_originalSource": "polymerelements/paper-ripple" } \ No newline at end of file diff --git a/dashboard-ui/components/collectioneditor/collectioneditor.js b/dashboard-ui/components/collectioneditor/collectioneditor.js index a3078bd04..0f8f4be6c 100644 --- a/dashboard-ui/components/collectioneditor/collectioneditor.js +++ b/dashboard-ui/components/collectioneditor/collectioneditor.js @@ -73,7 +73,9 @@ paperDialogHelper.close(dlg); - Dashboard.alert(Globalize.translate('MessageItemsAdded')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageItemsAdded')); + }); }); } diff --git a/dashboard-ui/components/imageuploader/imageuploader.js b/dashboard-ui/components/imageuploader/imageuploader.js index d4489c50d..8c1f5b0a5 100644 --- a/dashboard-ui/components/imageuploader/imageuploader.js +++ b/dashboard-ui/components/imageuploader/imageuploader.js @@ -11,12 +11,16 @@ switch (evt.target.error.code) { case evt.target.error.NOT_FOUND_ERR: - Dashboard.alert(Globalize.translate('MessageFileNotFound')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageFileNotFound')); + }); break; case evt.target.error.ABORT_ERR: break; // noop default: - Dashboard.alert(Globalize.translate('MessageFileReadError')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageFileReadError')); + }); break; }; } diff --git a/dashboard-ui/components/itemidentifier/itemidentifier.js b/dashboard-ui/components/itemidentifier/itemidentifier.js index bdfa4ae81..8117ae9c4 100644 --- a/dashboard-ui/components/itemidentifier/itemidentifier.js +++ b/dashboard-ui/components/itemidentifier/itemidentifier.js @@ -48,7 +48,9 @@ }); if (!hasId && !lookupInfo.Name) { - Dashboard.alert(Globalize.translate('MessagePleaseEnterNameOrId')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessagePleaseEnterNameOrId')); + }); return; } diff --git a/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js b/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js index b9e300565..37b396b24 100644 --- a/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js +++ b/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js @@ -31,7 +31,9 @@ }, function () { - Dashboard.alert(Globalize.translate('ErrorAddingMediaPathToVirtualFolder')); + require(['toast'], function (toast) { + toast(Globalize.translate('ErrorAddingMediaPathToVirtualFolder')); + }); }); return false; diff --git a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js index e3d5c2210..237061340 100644 --- a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js +++ b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js @@ -17,7 +17,9 @@ }, function () { - Dashboard.alert(Globalize.translate('ErrorAddingMediaPathToVirtualFolder')); + require(['toast'], function (toast) { + toast(Globalize.translate('ErrorAddingMediaPathToVirtualFolder')); + }); }); } @@ -43,7 +45,9 @@ }, function () { - Dashboard.alert(Globalize.translate('DefaultErrorMessage')); + require(['toast'], function (toast) { + toast(Globalize.translate('DefaultErrorMessage')); + }); }); }); }); diff --git a/dashboard-ui/components/metadataeditor/metadataeditor.js b/dashboard-ui/components/metadataeditor/metadataeditor.js index 7dccc9b70..9feb69bfc 100644 --- a/dashboard-ui/components/metadataeditor/metadataeditor.js +++ b/dashboard-ui/components/metadataeditor/metadataeditor.js @@ -15,7 +15,9 @@ function afterContentTypeUpdated() { - Dashboard.alert(Globalize.translate('MessageItemSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageItemSaved')); + }); Dashboard.hideLoadingMsg(); closeDialog(true); diff --git a/dashboard-ui/components/playlisteditor/playlisteditor.js b/dashboard-ui/components/playlisteditor/playlisteditor.js index b1a6e786e..9f3995ca4 100644 --- a/dashboard-ui/components/playlisteditor/playlisteditor.js +++ b/dashboard-ui/components/playlisteditor/playlisteditor.js @@ -74,7 +74,9 @@ Dashboard.hideLoadingMsg(); paperDialogHelper.close(dlg); - Dashboard.alert(Globalize.translate('MessageAddedToPlaylistSuccess')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageAddedToPlaylistSuccess')); + }); }); } diff --git a/dashboard-ui/components/recordingcreator/recordingcreator.js b/dashboard-ui/components/recordingcreator/recordingcreator.js index c1dd32f72..f0a2051ba 100644 --- a/dashboard-ui/components/recordingcreator/recordingcreator.js +++ b/dashboard-ui/components/recordingcreator/recordingcreator.js @@ -358,7 +358,9 @@ dlg.addEventListener('iron-overlay-closed', function () { if (recordingCreated) { - Dashboard.alert(Globalize.translate('MessageRecordingScheduled')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageRecordingScheduled')); + }); resolve(); } else { reject(); diff --git a/dashboard-ui/components/remotecontrol.js b/dashboard-ui/components/remotecontrol.js index 30351e74a..d3f16fe15 100644 --- a/dashboard-ui/components/remotecontrol.js +++ b/dashboard-ui/components/remotecontrol.js @@ -759,7 +759,9 @@ }, currentPlayer); $('input', form).val(''); - Dashboard.alert('Message sent.'); + require(['toast'], function (toast) { + toast('Message sent.'); + }); e.preventDefault(); e.stopPropagation(); @@ -780,7 +782,9 @@ }, currentPlayer); $('input', form).val(''); - Dashboard.alert('Text sent.'); + require(['toast'], function (toast) { + toast('Text sent.'); + }); e.preventDefault(); e.stopPropagation(); diff --git a/dashboard-ui/components/subtitleeditor/subtitleeditor.js b/dashboard-ui/components/subtitleeditor/subtitleeditor.js index af54ed738..6ad914a2a 100644 --- a/dashboard-ui/components/subtitleeditor/subtitleeditor.js +++ b/dashboard-ui/components/subtitleeditor/subtitleeditor.js @@ -56,7 +56,9 @@ }).then(function () { - Dashboard.alert(Globalize.translate('MessageDownloadQueued')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageDownloadQueued')); + }); }); } diff --git a/dashboard-ui/devices/ios/ios.css b/dashboard-ui/devices/ios/ios.css index 3c0ef2289..8f4c81da7 100644 --- a/dashboard-ui/devices/ios/ios.css +++ b/dashboard-ui/devices/ios/ios.css @@ -244,5 +244,5 @@ div.cardBox { } .videoSubtitles { - font-size: 300%; + font-size: 240%; } diff --git a/dashboard-ui/scripts/chromecast.js b/dashboard-ui/scripts/chromecast.js index 83150bac8..8d33ca287 100644 --- a/dashboard-ui/scripts/chromecast.js +++ b/dashboard-ui/scripts/chromecast.js @@ -276,13 +276,6 @@ console.log("chromecast launch error"); this.deviceState = DEVICE_STATE.ERROR; - //Dashboard.alert({ - - // title: Globalize.translate("Error"), - // message: Globalize.translate("ErrorLaunchingChromecast") - - //}); - sendConnectionResult(false); }; diff --git a/dashboard-ui/scripts/dlnaprofile.js b/dashboard-ui/scripts/dlnaprofile.js index 91e782808..e47f8280d 100644 --- a/dashboard-ui/scripts/dlnaprofile.js +++ b/dashboard-ui/scripts/dlnaprofile.js @@ -866,7 +866,9 @@ contentType: "application/json" }).then(function () { - Dashboard.alert('Settings saved.'); + require(['toast'], function (toast) { + toast('Settings saved.'); + }); }); } else { diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index f4c22bf28..7654776f5 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -1959,7 +1959,9 @@ ApiClient.cancelLiveTvTimer(id).then(function () { - Dashboard.alert(Globalize.translate('MessageRecordingCancelled')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageRecordingCancelled')); + }); reload(page); }); diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 2e41e3954..a1516c866 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -854,7 +854,9 @@ }); - Dashboard.alert(Globalize.translate('MessageRefreshQueued')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageRefreshQueued')); + }); }, deleteItems: function (itemIds) { diff --git a/dashboard-ui/scripts/livetvseriestimer.js b/dashboard-ui/scripts/livetvseriestimer.js index 8d6d02cb8..dcad7847f 100644 --- a/dashboard-ui/scripts/livetvseriestimer.js +++ b/dashboard-ui/scripts/livetvseriestimer.js @@ -13,7 +13,9 @@ ApiClient.cancelLiveTvTimer(id).then(function () { Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('MessageRecordingCancelled')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageRecordingCancelled')); + }); reload(page); }); @@ -116,7 +118,9 @@ ApiClient.updateLiveTvSeriesTimer(item).then(function () { Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('MessageRecordingSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageRecordingSaved')); + }); }); }); diff --git a/dashboard-ui/scripts/livetvseriestimers.js b/dashboard-ui/scripts/livetvseriestimers.js index ca2bd283f..faebf28eb 100644 --- a/dashboard-ui/scripts/livetvseriestimers.js +++ b/dashboard-ui/scripts/livetvseriestimers.js @@ -16,7 +16,9 @@ ApiClient.cancelLiveTvSeriesTimer(id).then(function () { - Dashboard.alert(Globalize.translate('MessageSeriesCancelled')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageSeriesCancelled')); + }); reload(page); }); diff --git a/dashboard-ui/scripts/livetvtimer.js b/dashboard-ui/scripts/livetvtimer.js index e3304df39..7939214f3 100644 --- a/dashboard-ui/scripts/livetvtimer.js +++ b/dashboard-ui/scripts/livetvtimer.js @@ -12,7 +12,9 @@ ApiClient.cancelLiveTvTimer(id).then(function () { - Dashboard.alert(Globalize.translate('MessageRecordingCancelled')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageRecordingCancelled')); + }); Dashboard.navigate('livetv.html'); }); @@ -78,7 +80,9 @@ ApiClient.updateLiveTvTimer(item).then(function () { Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('MessageRecordingSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageRecordingSaved')); + }); }); }); diff --git a/dashboard-ui/scripts/livetvtimers.js b/dashboard-ui/scripts/livetvtimers.js index 0ce21f241..d77b75cdb 100644 --- a/dashboard-ui/scripts/livetvtimers.js +++ b/dashboard-ui/scripts/livetvtimers.js @@ -10,7 +10,9 @@ ApiClient.cancelLiveTvTimer(id).then(function () { - Dashboard.alert(Globalize.translate('MessageRecordingCancelled')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageRecordingCancelled')); + }); reload(page); }); diff --git a/dashboard-ui/scripts/loginpage.js b/dashboard-ui/scripts/loginpage.js index 6111dcb1b..010fd0b71 100644 --- a/dashboard-ui/scripts/loginpage.js +++ b/dashboard-ui/scripts/loginpage.js @@ -121,7 +121,9 @@ Dashboard.hideLoadingMsg(); setTimeout(function () { - Dashboard.alert(Globalize.translate('MessageInvalidUser')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageInvalidUser')); + }); }, 300); }); diff --git a/dashboard-ui/scripts/mypreferencesdisplay.js b/dashboard-ui/scripts/mypreferencesdisplay.js index 174e8b6ea..4628b40c5 100644 --- a/dashboard-ui/scripts/mypreferencesdisplay.js +++ b/dashboard-ui/scripts/mypreferencesdisplay.js @@ -42,7 +42,9 @@ Dashboard.hideLoadingMsg(); if (!AppInfo.enableAutoSave) { - Dashboard.alert(Globalize.translate('SettingsSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('SettingsSaved')); + }); } }, function () { diff --git a/dashboard-ui/scripts/mypreferenceshome.js b/dashboard-ui/scripts/mypreferenceshome.js index c512d76b0..2a62ca146 100644 --- a/dashboard-ui/scripts/mypreferenceshome.js +++ b/dashboard-ui/scripts/mypreferenceshome.js @@ -224,7 +224,9 @@ Dashboard.hideLoadingMsg(); if (!AppInfo.enableAutoSave) { - Dashboard.alert(Globalize.translate('SettingsSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('SettingsSaved')); + }); } }, function () { diff --git a/dashboard-ui/scripts/mypreferenceslanguages.js b/dashboard-ui/scripts/mypreferenceslanguages.js index f3f8133e2..e062f6825 100644 --- a/dashboard-ui/scripts/mypreferenceslanguages.js +++ b/dashboard-ui/scripts/mypreferenceslanguages.js @@ -123,7 +123,9 @@ Dashboard.hideLoadingMsg(); if (!AppInfo.enableAutoSave) { - Dashboard.alert(Globalize.translate('SettingsSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('SettingsSaved')); + }); } }, function () { diff --git a/dashboard-ui/scripts/myprofile.js b/dashboard-ui/scripts/myprofile.js index 7450424db..cd63df346 100644 --- a/dashboard-ui/scripts/myprofile.js +++ b/dashboard-ui/scripts/myprofile.js @@ -80,15 +80,24 @@ switch (evt.target.error.code) { case evt.target.error.NOT_FOUND_ERR: - Dashboard.alert(Globalize.translate('FileNotFound')); + require(['toast'], function (toast) { + toast(Globalize.translate('FileNotFound')); + }); break; case evt.target.error.NOT_READABLE_ERR: - Dashboard.alert(Globalize.translate('FileReadError')); + require(['toast'], function (toast) { + toast(Globalize.translate('FileReadError')); + }); break; case evt.target.error.ABORT_ERR: break; // noop default: - Dashboard.alert(Globalize.translate('FileReadError')); + { + require(['toast'], function (toast) { + toast(Globalize.translate('FileReadError')); + }); + break; + } }; } @@ -100,7 +109,9 @@ function onFileReaderAbort(evt) { Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('FileReadCancelled')); + require(['toast'], function (toast) { + toast(Globalize.translate('FileReadCancelled')); + }); } function setFiles(page, files) { @@ -300,7 +311,9 @@ Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('MessageSettingsSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageSettingsSaved')); + }); loadUser(page); }); }); @@ -317,7 +330,9 @@ Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('PasswordSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('PasswordSaved')); + }); loadUser(page); }, function() { @@ -343,7 +358,9 @@ if ($('#txtNewPassword', page).val() != $('#txtNewPasswordConfirm', page).val()) { - Dashboard.alert(Globalize.translate('PasswordMatchError')); + require(['toast'], function (toast) { + toast(Globalize.translate('PasswordMatchError')); + }); } else { Dashboard.showLoadingMsg(); diff --git a/dashboard-ui/scripts/mysync.js b/dashboard-ui/scripts/mysync.js index 930e4efcf..ba45f1bd9 100644 --- a/dashboard-ui/scripts/mysync.js +++ b/dashboard-ui/scripts/mysync.js @@ -27,7 +27,9 @@ require(['localsync'], function () { LocalSync.sync(); - Dashboard.alert(Globalize.translate('MessageSyncStarted')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageSyncStarted')); + }); refreshSyncStatus(page); }); } diff --git a/dashboard-ui/scripts/mysyncsettings.js b/dashboard-ui/scripts/mysyncsettings.js index fe5cfcfb7..6cdf13345 100644 --- a/dashboard-ui/scripts/mysyncsettings.js +++ b/dashboard-ui/scripts/mysyncsettings.js @@ -34,7 +34,9 @@ })); Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('SettingsSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('SettingsSaved')); + }); } function onSubmit() { diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index c9c2ddddc..b27baad4d 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -511,14 +511,18 @@ var Dashboard = { Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('MessageSettingsSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageSettingsSaved')); + }); }, processServerConfigurationUpdateResult: function (result) { Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('MessageSettingsSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageSettingsSaved')); + }); }, alert: function (options) { diff --git a/dashboard-ui/scripts/supporterkeypage.js b/dashboard-ui/scripts/supporterkeypage.js index b67a0a80f..e7f0892f1 100644 --- a/dashboard-ui/scripts/supporterkeypage.js +++ b/dashboard-ui/scripts/supporterkeypage.js @@ -83,9 +83,13 @@ var result = JSON.parse(res); Dashboard.hideLoadingMsg(); if (result.Success) { - Dashboard.alert(Globalize.translate('MessageKeysLinked')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageKeysLinked')); + }); } else { - Dashboard.alert(result.ErrorMessage); + require(['toast'], function (toast) { + toast(result.ErrorMessage); + }); } console.log(result); @@ -107,9 +111,13 @@ var result = JSON.parse(res); Dashboard.hideLoadingMsg(); if (result.Success) { - Dashboard.alert(Globalize.translate('MessageKeyEmailedTo').replace("{0}", email)); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageKeyEmailedTo').replace("{0}", email)); + }); } else { - Dashboard.alert(result.ErrorMessage); + require(['toast'], function (toast) { + toast(result.ErrorMessage); + }); } console.log(result); diff --git a/dashboard-ui/scripts/sync.js b/dashboard-ui/scripts/sync.js index 7a8949401..dc0de3f79 100644 --- a/dashboard-ui/scripts/sync.js +++ b/dashboard-ui/scripts/sync.js @@ -20,7 +20,9 @@ if (!target) { - Dashboard.alert(Globalize.translate('MessagePleaseSelectDeviceToSyncTo')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessagePleaseSelectDeviceToSyncTo')); + }); return; } @@ -52,7 +54,9 @@ }).then(function () { paperDialogHelper.close(dlg); - Dashboard.alert(Globalize.translate('MessageSyncJobCreated')); + require(['toast'], function (toast) { + toast(Globalize.translate('MessageSyncJobCreated')); + }); }); } diff --git a/dashboard-ui/scripts/syncjob.js b/dashboard-ui/scripts/syncjob.js index 4b7218ec5..7851931b6 100644 --- a/dashboard-ui/scripts/syncjob.js +++ b/dashboard-ui/scripts/syncjob.js @@ -360,7 +360,9 @@ }).then(function () { Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('SettingsSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('SettingsSaved')); + }); }); }); }); diff --git a/dashboard-ui/scripts/useredit.js b/dashboard-ui/scripts/useredit.js index 908243763..2691cb35a 100644 --- a/dashboard-ui/scripts/useredit.js +++ b/dashboard-ui/scripts/useredit.js @@ -150,7 +150,9 @@ var enteredConnectUsername = $('#txtConnectUserName', page).val(); if (currentConnectUsername == enteredConnectUsername) { - Dashboard.alert(Globalize.translate('SettingsSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('SettingsSaved')); + }); } else { updateUserInfo(user, $('#txtConnectUserName', page).val(), function () { diff --git a/dashboard-ui/scripts/userlibraryaccess.js b/dashboard-ui/scripts/userlibraryaccess.js index a97ad30de..4e86ab8e7 100644 --- a/dashboard-ui/scripts/userlibraryaccess.js +++ b/dashboard-ui/scripts/userlibraryaccess.js @@ -115,7 +115,9 @@ Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('SettingsSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('SettingsSaved')); + }); } function saveUser(user, page) { diff --git a/dashboard-ui/scripts/usernew.js b/dashboard-ui/scripts/usernew.js index 8ed0a0910..b7a4b6d0e 100644 --- a/dashboard-ui/scripts/usernew.js +++ b/dashboard-ui/scripts/usernew.js @@ -116,7 +116,9 @@ }); } else { - Dashboard.alert(Globalize.translate('DefaultErrorMessage')); + require(['toast'], function (toast) { + toast(Globalize.translate('DefaultErrorMessage')); + }); } Dashboard.hideLoadingMsg(); diff --git a/dashboard-ui/scripts/userparentalcontrol.js b/dashboard-ui/scripts/userparentalcontrol.js index 4a401e554..a27dd9bec 100644 --- a/dashboard-ui/scripts/userparentalcontrol.js +++ b/dashboard-ui/scripts/userparentalcontrol.js @@ -191,7 +191,9 @@ Dashboard.hideLoadingMsg(); - Dashboard.alert(Globalize.translate('SettingsSaved')); + require(['toast'], function (toast) { + toast(Globalize.translate('SettingsSaved')); + }); } function saveUser(user, page) { diff --git a/dashboard-ui/voice/commands/playcommands.js b/dashboard-ui/voice/commands/playcommands.js index 1e1c3fc81..ce2b500fd 100644 --- a/dashboard-ui/voice/commands/playcommands.js +++ b/dashboard-ui/voice/commands/playcommands.js @@ -21,8 +21,8 @@ define([], function () { }); } else { - Dashboard.alert({ - message: Globalize.translate('MessageNoItemsFound') + require(['toast'], function (toast) { + toast(Globalize.translate('MessageNoItemsFound')); }); } }