| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | <!DOCTYPE html><html><head>    <title>OMDb</title></head><body>    <div 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">                <form class="configForm">                    <label class="checkboxContainer">                        <input is="emby-checkbox" type="checkbox" id="castAndCrew" />                        <span>Collect information about the cast and other crew members from OMDb.</span>                    </label>                    <br />                    <div>                        <button is="emby-button" type="submit" class="raised button-submit block"><span>Save</span></button>                    </div>                </form>            </div>        </div>        <script type="text/javascript">            var PluginConfig = {                pluginId: "a628c0da-fac5-4c7e-9d1a-7134223f14c8"            };            $('.configPage').on('pageshow', function () {                Dashboard.showLoadingMsg();                ApiClient.getPluginConfiguration(PluginConfig.pluginId).then(function (config) {                    $('#castAndCrew').checked = config.CastAndCrew;                    Dashboard.hideLoadingMsg();                });            });            $('.configForm').on('submit', function (e) {                Dashboard.showLoadingMsg();                var form = this;                ApiClient.getPluginConfiguration(PluginConfig.pluginId).then(function (config) {                    config.CastAndCrew = $('#castAndCrew', form).checked;                    ApiClient.updatePluginConfiguration(PluginConfig.pluginId, config).then(Dashboard.processPluginConfigurationUpdateResult);                });                return false;            });        </script>    </div></body></html>
 |