mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
paperdialoghelper -> dialogHelper
This commit is contained in:
parent
822553d966
commit
ae421fa193
37 changed files with 168 additions and 163 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['paperdialoghelper', 'jQuery', 'paper-item', 'paper-input', 'paper-fab', 'paper-item-body'], function (paperDialogHelper, $) {
|
||||
define(['dialogHelper', 'jQuery', 'paper-item', 'paper-input', 'paper-fab', 'paper-item-body'], function (dialogHelper, $) {
|
||||
|
||||
var systemInfo;
|
||||
function getSystemInfo() {
|
||||
|
@ -207,7 +207,7 @@
|
|||
|
||||
getSystemInfo().then(function (systemInfo) {
|
||||
|
||||
var dlg = paperDialogHelper.createDialog({
|
||||
var dlg = dialogHelper.createDialog({
|
||||
size: 'medium'
|
||||
});
|
||||
|
||||
|
@ -239,11 +239,11 @@
|
|||
});
|
||||
$(dlg).on('close', onDialogClosed);
|
||||
|
||||
paperDialogHelper.open(dlg);
|
||||
dialogHelper.open(dlg);
|
||||
|
||||
$('.btnCloseDialog', dlg).on('click', function () {
|
||||
|
||||
paperDialogHelper.close(dlg);
|
||||
dialogHelper.close(dlg);
|
||||
});
|
||||
|
||||
currentDialog = dlg;
|
||||
|
@ -261,7 +261,7 @@
|
|||
|
||||
self.close = function () {
|
||||
if (currentDialog) {
|
||||
paperDialogHelper.close(currentDialog);
|
||||
dialogHelper.close(currentDialog);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue