mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove another jqm panel
This commit is contained in:
parent
914a579a66
commit
8a8ca495fd
10 changed files with 56 additions and 55 deletions
|
@ -15,12 +15,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"version": "1.0.77",
|
"version": "1.0.79",
|
||||||
"_release": "1.0.77",
|
"_release": "1.0.79",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "1.0.77",
|
"tag": "1.0.79",
|
||||||
"commit": "68a71ffeed9dad3e3d06d163b51ae4c555f3c1f9"
|
"commit": "f00dd984581d53272229de71458c8a8f6b5878fc"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
||||||
"_target": "~1.0.0",
|
"_target": "~1.0.0",
|
||||||
|
|
|
@ -32,8 +32,20 @@ define(['paperdialoghelper', 'layoutManager', 'globalize', 'dialogText', 'html!.
|
||||||
html += '<paper-icon-button tabindex="-1" icon="dialog:arrow-back" class="btnPromptExit"></paper-icon-button>';
|
html += '<paper-icon-button tabindex="-1" icon="dialog:arrow-back" class="btnPromptExit"></paper-icon-button>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.title) {
|
||||||
|
html += '<h2>';
|
||||||
|
html += options.title;
|
||||||
|
html += '</h2>';
|
||||||
|
}
|
||||||
|
|
||||||
html += '<paper-input autoFocus class="txtPromptValue"></paper-input>';
|
html += '<paper-input autoFocus class="txtPromptValue"></paper-input>';
|
||||||
|
|
||||||
|
if (options.description) {
|
||||||
|
html += '<div class="fieldDescription">';
|
||||||
|
html += options.description;
|
||||||
|
html += '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: An actual form element should probably be added
|
// TODO: An actual form element should probably be added
|
||||||
html += '<br/>';
|
html += '<br/>';
|
||||||
if (raisedButtons) {
|
if (raisedButtons) {
|
||||||
|
@ -53,8 +65,8 @@ define(['paperdialoghelper', 'layoutManager', 'globalize', 'dialogText', 'html!.
|
||||||
dlg.querySelector('.txtPromptValue').value = options.text;
|
dlg.querySelector('.txtPromptValue').value = options.text;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.title) {
|
if (options.label) {
|
||||||
dlg.querySelector('.txtPromptValue').label = options.title;
|
dlg.querySelector('.txtPromptValue').label = options.label;
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.appendChild(dlg);
|
document.body.appendChild(dlg);
|
||||||
|
|
|
@ -228,7 +228,7 @@
|
||||||
require(['prompt'], function (prompt) {
|
require(['prompt'], function (prompt) {
|
||||||
|
|
||||||
prompt({
|
prompt({
|
||||||
title: 'Value:'
|
label: 'Value:'
|
||||||
}).then(function (text) {
|
}).then(function (text) {
|
||||||
var list = $(source).parents('.editableListviewContainer').find('.paperList');
|
var list = $(source).parents('.editableListviewContainer').find('.paperList');
|
||||||
var items = editableListViewValues(list);
|
var items = editableListViewValues(list);
|
||||||
|
|
|
@ -72,9 +72,9 @@
|
||||||
require(['prompt'], function (prompt) {
|
require(['prompt'], function (prompt) {
|
||||||
|
|
||||||
prompt({
|
prompt({
|
||||||
title: Globalize.translate('LabelNewName'),
|
label: Globalize.translate('LabelNewName')
|
||||||
callback: function (newName) {
|
|
||||||
|
|
||||||
|
}).then(function (newName) {
|
||||||
if (newName && newName != virtualFolder.Name) {
|
if (newName && newName != virtualFolder.Name) {
|
||||||
|
|
||||||
var refreshAfterChange = shouldRefreshLibraryAfterChanges(page);
|
var refreshAfterChange = shouldRefreshLibraryAfterChanges(page);
|
||||||
|
@ -83,7 +83,6 @@
|
||||||
reloadLibrary(page);
|
reloadLibrary(page);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -95,28 +95,33 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSubmit() {
|
function showNewKeyPrompt(page) {
|
||||||
var form = this;
|
require(['prompt'], function (prompt) {
|
||||||
var page = $(form).parents('.page');
|
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
// HeaderNewApiKeyHelp not used
|
||||||
|
|
||||||
|
prompt({
|
||||||
|
title: Globalize.translate('HeaderNewApiKey'),
|
||||||
|
label: Globalize.translate('LabelAppName'),
|
||||||
|
description: Globalize.translate('LabelAppNameExample')
|
||||||
|
|
||||||
|
}).then(function (value) {
|
||||||
|
|
||||||
ApiClient.ajax({
|
ApiClient.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: ApiClient.getUrl('Auth/Keys', {
|
url: ApiClient.getUrl('Auth/Keys', {
|
||||||
|
|
||||||
App: $('#txtAppName', form).val()
|
App: value
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
|
|
||||||
$('.newKeyPanel', page).panel('close');
|
|
||||||
|
|
||||||
loadData(page);
|
loadData(page);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
return false;
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
pageIdOn('pageinit', "serverSecurityPage", function () {
|
pageIdOn('pageinit', "serverSecurityPage", function () {
|
||||||
|
@ -125,14 +130,10 @@
|
||||||
|
|
||||||
$('.btnNewKey', page).on('click', function () {
|
$('.btnNewKey', page).on('click', function () {
|
||||||
|
|
||||||
$('.newKeyPanel', page).panel('toggle');
|
showNewKeyPrompt(page);
|
||||||
|
|
||||||
$('#txtAppName', page).val('').focus();
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.newKeyForm').off('submit', onSubmit).on('submit', onSubmit);
|
|
||||||
|
|
||||||
});
|
});
|
||||||
pageIdOn('pagebeforeshow', "serverSecurityPage", function () {
|
pageIdOn('pagebeforeshow', "serverSecurityPage", function () {
|
||||||
|
|
||||||
|
|
|
@ -343,7 +343,7 @@
|
||||||
require(['prompt'], function (prompt) {
|
require(['prompt'], function (prompt) {
|
||||||
|
|
||||||
prompt({
|
prompt({
|
||||||
title: Globalize.translate('LabelTag')
|
label: Globalize.translate('LabelTag')
|
||||||
|
|
||||||
}).then(function (value) {
|
}).then(function (value) {
|
||||||
var tags = getBlockedTagsFromPage(page);
|
var tags = getBlockedTagsFromPage(page);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>${TitleAdvanced}</title>
|
<title>${TitleAdvanced}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="serverSecurityPage" data-role="page" class="page type-interior advancedConfigurationPage" data-require="jqmpanel,jqmtable,scripts/serversecurity,detailtablecss">
|
<div id="serverSecurityPage" data-role="page" class="page type-interior advancedConfigurationPage" data-require="jqmtable,scripts/serversecurity,detailtablecss">
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="content-primary">
|
<div class="content-primary">
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||||
|
@ -38,21 +38,6 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div data-role="panel" class="newKeyPanel" data-position="right" data-display="overlay" data-position-fixed="true">
|
|
||||||
<form class="newKeyForm">
|
|
||||||
<h3>${HeaderNewApiKey}</h3>
|
|
||||||
<p>${HeaderNewApiKeyHelp}</p>
|
|
||||||
<div>
|
|
||||||
<label for="txtAppName">${LabelAppName}</label>
|
|
||||||
<input type="text" id="txtAppName" required="required" />
|
|
||||||
<div class="fieldDescription">${LabelAppNameExample}</div>
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
<p>
|
|
||||||
<button type="submit" data-icon="plus" data-mini="true" data-theme="b">${ButtonCreate}</button>
|
|
||||||
</p>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1033,10 +1033,6 @@
|
||||||
"HeaderUser": "User",
|
"HeaderUser": "User",
|
||||||
"HeaderDateIssued": "Date Issued",
|
"HeaderDateIssued": "Date Issued",
|
||||||
"LabelChapterName": "Chapter {0}",
|
"LabelChapterName": "Chapter {0}",
|
||||||
"HeaderNewApiKey": "New Api Key",
|
|
||||||
"LabelAppName": "App name",
|
|
||||||
"LabelAppNameExample": "Example: Sickbeard, NzbDrone",
|
|
||||||
"HeaderNewApiKeyHelp": "Grant an application permission to communicate with Emby Server.",
|
|
||||||
"ButtonEnterSupporterKey": "Enter Emby Premiere key",
|
"ButtonEnterSupporterKey": "Enter Emby Premiere key",
|
||||||
"HeaderHttpHeaders": "Http Headers",
|
"HeaderHttpHeaders": "Http Headers",
|
||||||
"HeaderIdentificationHeader": "Identification Header",
|
"HeaderIdentificationHeader": "Identification Header",
|
||||||
|
|
|
@ -37,6 +37,10 @@
|
||||||
"MessageKeyRemoved": "Thank you. Your Emby Premiere key has been removed.",
|
"MessageKeyRemoved": "Thank you. Your Emby Premiere key has been removed.",
|
||||||
"HeaderSupportTheTeam": "Support the Emby Team",
|
"HeaderSupportTheTeam": "Support the Emby Team",
|
||||||
"TextEnjoyBonusFeatures": "Enjoy Bonus Features",
|
"TextEnjoyBonusFeatures": "Enjoy Bonus Features",
|
||||||
|
"HeaderNewApiKey": "New Api Key",
|
||||||
|
"LabelAppName": "App name",
|
||||||
|
"LabelAppNameExample": "Example: Sickbeard, NzbDrone",
|
||||||
|
"HeaderNewApiKeyHelp": "Grant an application permission to communicate with Emby Server.",
|
||||||
"TitleLiveTV": "Live TV",
|
"TitleLiveTV": "Live TV",
|
||||||
"ButtonCancelSyncJob": "Cancel sync",
|
"ButtonCancelSyncJob": "Cancel sync",
|
||||||
"HeaderAddTag": "Add Tag",
|
"HeaderAddTag": "Add Tag",
|
||||||
|
|
|
@ -30,6 +30,10 @@
|
||||||
"NoPluginConfigurationMessage": "This plugin has nothing to configure.",
|
"NoPluginConfigurationMessage": "This plugin has nothing to configure.",
|
||||||
"NoPluginsInstalledMessage": "You have no plugins installed.",
|
"NoPluginsInstalledMessage": "You have no plugins installed.",
|
||||||
"BrowsePluginCatalogMessage": "Browse our plugin catalog to view available plugins.",
|
"BrowsePluginCatalogMessage": "Browse our plugin catalog to view available plugins.",
|
||||||
|
"HeaderNewApiKey": "New Api Key",
|
||||||
|
"LabelAppName": "App name",
|
||||||
|
"LabelAppNameExample": "Example: Sickbeard, NzbDrone",
|
||||||
|
"HeaderNewApiKeyHelp": "Grant an application permission to communicate with Emby Server.",
|
||||||
"MessageKeyEmailedTo": "Key emailed to {0}.",
|
"MessageKeyEmailedTo": "Key emailed to {0}.",
|
||||||
"MessageKeysLinked": "Keys linked.",
|
"MessageKeysLinked": "Keys linked.",
|
||||||
"HeaderConfirmation": "Confirmation",
|
"HeaderConfirmation": "Confirmation",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue