|
|
|
@ -1,9 +1,14 @@
|
|
|
|
|
<div id="musicBrainzConfigurationPage" data-role="page"
|
|
|
|
|
class="page type-interior pluginConfigurationPage musicBrainzConfigurationPage" data-require="emby-input,emby-button,emby-checkbox">
|
|
|
|
|
<div data-role="content">
|
|
|
|
|
<div class="content-primary">
|
|
|
|
|
<h1>MusicBrainz</h1>
|
|
|
|
|
<form class="musicBrainzConfigurationForm">
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title>MusicBrainz</title>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="configPage" data-role="page" class="page type-interior pluginConfigurationPage configPage" data-require="emby-input,emby-button,emby-checkbox">
|
|
|
|
|
<div data-role="content">
|
|
|
|
|
<div class="content-primary">
|
|
|
|
|
<h1>MusicBrainz</h1>
|
|
|
|
|
<form class="configForm">
|
|
|
|
|
<div class="inputContainer">
|
|
|
|
|
<input is="emby-input" type="text" id="server" required label="Server" />
|
|
|
|
|
<div class="fieldDescription">This can be a mirror of the official server or even a custom server.</div>
|
|
|
|
@ -28,7 +33,7 @@
|
|
|
|
|
uniquePluginId: "8c95c4d2-e50c-4fb0-a4f3-6c06ff0f9a1a"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
document.querySelector('.musicBrainzConfigurationPage')
|
|
|
|
|
document.querySelector('.configPage')
|
|
|
|
|
.addEventListener('pageshow', function () {
|
|
|
|
|
Dashboard.showLoadingMsg();
|
|
|
|
|
ApiClient.getPluginConfiguration(MusicBrainzPluginConfig.uniquePluginId).then(function (config) {
|
|
|
|
@ -52,7 +57,7 @@
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
document.querySelector('.musicBrainzConfigurationForm')
|
|
|
|
|
document.querySelector('.configForm')
|
|
|
|
|
.addEventListener('submit', function (e) {
|
|
|
|
|
Dashboard.showLoadingMsg();
|
|
|
|
|
|
|
|
|
|