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

remove jquery from person editor

This commit is contained in:
Luke Pulverenti 2016-07-23 19:00:52 -04:00
parent 84e7296363
commit ffc1d36492
2 changed files with 8 additions and 8 deletions

View file

@ -1,4 +1,4 @@
define(['dialogHelper', 'jQuery', 'paper-icon-button-light', 'emby-input', 'emby-select'], function (dialogHelper, $) { define(['dialogHelper', 'paper-icon-button-light', 'emby-input', 'emby-select'], function (dialogHelper) {
return { return {
show: function (person) { show: function (person) {
@ -28,9 +28,9 @@
dlg.innerHTML = html; dlg.innerHTML = html;
document.body.appendChild(dlg); document.body.appendChild(dlg);
$('.txtPersonName', dlg).val(person.Name || ''); dlg.querySelector('.txtPersonName', dlg).value = person.Name || '';
$('.selectPersonType', dlg).val(person.Type || ''); dlg.querySelector('.selectPersonType', dlg).value = person.Type || '';
$('.txtPersonRole', dlg).val(person.Role || ''); dlg.querySelector('.txtPersonRole', dlg).value = person.Role || '';
dialogHelper.open(dlg); dialogHelper.open(dlg);
@ -52,9 +52,9 @@
submitted = true; submitted = true;
person.Name = $('.txtPersonName', dlg).val(); person.Name = dlg.querySelector('.txtPersonName', dlg).value;
person.Type = $('.selectPersonType', dlg).val(); person.Type = dlg.querySelector('.selectPersonType', dlg).value;
person.Role = $('.txtPersonRole', dlg).val() || null; person.Role = dlg.querySelector('.txtPersonRole', dlg).value || null;
dialogHelper.close(dlg); dialogHelper.close(dlg);

View file

@ -2194,7 +2194,7 @@
"HeaderUnlockSync": "Unlock Emby Sync", "HeaderUnlockSync": "Unlock Emby Sync",
"MessageUnlockAppWithPurchaseOrSupporter": "Unlock this feature with a small one-time purchase, or with an active Emby Premiere subscription.", "MessageUnlockAppWithPurchaseOrSupporter": "Unlock this feature with a small one-time purchase, or with an active Emby Premiere subscription.",
"MessageUnlockAppWithSupporter": "Unlock this feature with an active Emby Premiere subscription.", "MessageUnlockAppWithSupporter": "Unlock this feature with an active Emby Premiere subscription.",
"MessageToValidateSupporter": "If you have an active Emby Premiere subscription, ensure you've setup Emby Premiere in your Emby Server Dashboard under Help -> Emby Premiere.", "MessageToValidateSupporter": "If you have an active Emby Premiere subscription, ensure you've setup Emby Premiere in your Emby Server Dashboard, which you can access by clicking Emby Premiere within the main menu.",
"MessagePaymentServicesUnavailable": "Payment services are currently unavailable. Please try again later.", "MessagePaymentServicesUnavailable": "Payment services are currently unavailable. Please try again later.",
"MessagePleaseSignInLocalNetwork": "Before proceeding, please ensure that you're connected to your local network using a Wifi or LAN connection.", "MessagePleaseSignInLocalNetwork": "Before proceeding, please ensure that you're connected to your local network using a Wifi or LAN connection.",
"ButtonUnlockWithPurchase": "Unlock with Purchase", "ButtonUnlockWithPurchase": "Unlock with Purchase",