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 {
show: function (person) {
@ -28,9 +28,9 @@
dlg.innerHTML = html;
document.body.appendChild(dlg);
$('.txtPersonName', dlg).val(person.Name || '');
$('.selectPersonType', dlg).val(person.Type || '');
$('.txtPersonRole', dlg).val(person.Role || '');
dlg.querySelector('.txtPersonName', dlg).value = person.Name || '';
dlg.querySelector('.selectPersonType', dlg).value = person.Type || '';
dlg.querySelector('.txtPersonRole', dlg).value = person.Role || '';
dialogHelper.open(dlg);
@ -52,9 +52,9 @@
submitted = true;
person.Name = $('.txtPersonName', dlg).val();
person.Type = $('.selectPersonType', dlg).val();
person.Role = $('.txtPersonRole', dlg).val() || null;
person.Name = dlg.querySelector('.txtPersonName', dlg).value;
person.Type = dlg.querySelector('.selectPersonType', dlg).value;
person.Role = dlg.querySelector('.txtPersonRole', dlg).value || null;
dialogHelper.close(dlg);

View File

@ -2194,7 +2194,7 @@
"HeaderUnlockSync": "Unlock Emby Sync",
"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.",
"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.",
"MessagePleaseSignInLocalNetwork": "Before proceeding, please ensure that you're connected to your local network using a Wifi or LAN connection.",
"ButtonUnlockWithPurchase": "Unlock with Purchase",