diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index cbecf562ab..9ca8f752c9 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 5e92c19d4a..957df7f09a 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 2b04bf9f8a..a6b333d335 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 157225ee71..2f654d71c6 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 a3078bd040..0f8f4be6c8 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 d4489c50d7..8c1f5b0a53 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 bdfa4ae810..8117ae9c49 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 b9e3005656..37b396b24b 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 e3d5c2210c..237061340e 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 7dccc9b700..9feb69bfc2 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 b1a6e786e2..9f3995ca41 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 c1dd32f721..f0a2051ba6 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 30351e74ac..d3f16fe159 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 af54ed738a..6ad914a2a6 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 3c0ef2289b..8f4c81da78 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 83150bac8b..8d33ca287c 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 91e7828085..e47f8280da 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 f4c22bf28c..7654776f5f 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 2e41e39545..a1516c866d 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 8d6d02cb85..dcad7847f8 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 ca2bd283f7..faebf28eb8 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 e3304df393..7939214f35 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 0ce21f2410..d77b75cdb5 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 6111dcb1b8..010fd0b71d 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 174e8b6eac..4628b40c54 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 c512d76b0e..2a62ca146e 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 f3f8133e2b..e062f68250 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 7450424db6..cd63df3463 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 930e4efcfa..ba45f1bd99 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 fe5cfcfb78..6cdf133453 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 c9c2ddddc4..b27baad4d9 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 b67a0a80f8..e7f0892f1b 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 7a89494018..dc0de3f790 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 4b7218ec5d..7851931b60 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 908243763c..2691cb35ac 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 a97ad30de7..4e86ab8e7e 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 8ed0a0910e..b7a4b6d0e3 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 4a401e554c..a27dd9becd 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 1e1c3fc81b..ce2b500fde 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')); }); } }