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'], function (paperDialogHelper, $) {
|
||||
define(['dialogHelper', 'jQuery'], function (dialogHelper, $) {
|
||||
|
||||
var currentRecognition;
|
||||
var lang = 'en-US';
|
||||
|
@ -121,7 +121,7 @@ define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) {
|
|||
/// <returns> . </returns>
|
||||
function showVoiceHelp(groupid, title) {
|
||||
|
||||
var dlg = paperDialogHelper.createDialog({
|
||||
var dlg = dialogHelper.createDialog({
|
||||
size: 'medium',
|
||||
removeOnClose: true
|
||||
});
|
||||
|
@ -176,7 +176,7 @@ define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) {
|
|||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
||||
paperDialogHelper.open(dlg);
|
||||
dialogHelper.open(dlg);
|
||||
currentDialog = dlg;
|
||||
|
||||
dlg.addEventListener('close', function () {
|
||||
|
@ -185,7 +185,7 @@ define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) {
|
|||
|
||||
$('.btnCancelVoiceInput', dlg).on('click', function () {
|
||||
destroyCurrentRecognition();
|
||||
paperDialogHelper.close(dlg);
|
||||
dialogHelper.close(dlg);
|
||||
});
|
||||
|
||||
$('.btnRetry', dlg).on('click', function () {
|
||||
|
@ -250,7 +250,7 @@ define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) {
|
|||
|
||||
var dlg = currentDialog;
|
||||
if (dlg) {
|
||||
paperDialogHelper.close(dlg);
|
||||
dialogHelper.close(dlg);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue