Skip to content

Commit

Permalink
added requests addon
Browse files Browse the repository at this point in the history
  • Loading branch information
soultaco83 committed Oct 20, 2024
1 parent 4ce4c45 commit df204a0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions MediaBrowser.Providers/MediaBrowser.Providers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<EmbeddedResource Include="Plugins\StudioImages\Configuration\config.html" />
<None Remove="Plugins\Tmdb\Configuration\config.html" />
<EmbeddedResource Include="Plugins\Tmdb\Configuration\config.html" />
<None Remove="Plugins\RequestsAddon\Configuration\configPage.html" />
<EmbeddedResource Include="Plugins\RequestsAddon\Configuration\configPage.html" />
<None Remove="Plugins\RequestsAddon\Configuration\config.html" />
<EmbeddedResource Include="Plugins\RequestsAddon\Configuration\config.html" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<title>RequestsAddon</title>
</head>
<body>
<div id="RequestsAddonConfigPage" data-role="page" class="page type-interior pluginConfigurationPage" data-require="emby-input,emby-button,emby-select,emby-checkbox">
<div id="configPage" data-role="page" class="page type-interior pluginConfigurationPage configPage" data-require="emby-input,emby-button,emby-select,emby-checkbox">
<div data-role="content">
<div class="content-primary">
<form id="RequestsAddonConfigForm">
<form id="configForm">
<div class="inputContainer">
<label class="inputLabel inputLabelUnfocused" for="RequestsUrl">Requests URL</label>
<input id="RequestsUrl" name="RequestsUrl" type="text" is="emby-input" />
Expand Down Expand Up @@ -41,7 +41,7 @@ <h3 class="listItemBodyText" style="color: #00a4dc;">Plugin Update Information</
pluginUniqueId: 'b0bef419-e5b8-439d-a6a5-9b96949cbe7e'
};

document.querySelector('#RequestsAddonConfigPage')
document.querySelector('.configPage')
.addEventListener('pageshow', function() {
Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(RequestsAddonConfig.pluginUniqueId).then(function (config) {
Expand All @@ -50,7 +50,7 @@ <h3 class="listItemBodyText" style="color: #00a4dc;">Plugin Update Information</
});
});

document.querySelector('#RequestsAddonConfigForm')
document.querySelector('.configForm')
.addEventListener('submit', function(e) {
Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(RequestsAddonConfig.pluginUniqueId).then(function (config) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
</ItemGroup>

<ItemGroup>
<None Remove="Configuration\configPage.html" />
<EmbeddedResource Include="Configuration\configPage.html" />
<None Remove="Configuration\config.html" />
<EmbeddedResource Include="Configuration\config.html" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion MediaBrowser.Providers/Plugins/RequestsAddon/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public IEnumerable<PluginPageInfo> GetPages()
new PluginPageInfo
{
Name = this.Name,
EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Configuration.configPage.html", GetType().Namespace)
EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Configuration.config.html", GetType().Namespace)
}
};
}
Expand Down

0 comments on commit df204a0

Please sign in to comment.