diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-03-23 00:04:36 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-03-23 00:04:36 -0400 |
| commit | b20151fff373100da7946df93afb7dd4dccea3e4 (patch) | |
| tree | a16d7085c0eab807c309c94461ed60821029f1ff /MediaBrowser.WebDashboard/Html/scripts/SupporterKeyPage.js | |
| parent | 4bc27f3a65ddbffcc7b74683df72503f20df275c (diff) | |
copy dashboard to the output folder and load from the file system, instead of using embedded resources
Diffstat (limited to 'MediaBrowser.WebDashboard/Html/scripts/SupporterKeyPage.js')
| -rw-r--r-- | MediaBrowser.WebDashboard/Html/scripts/SupporterKeyPage.js | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/MediaBrowser.WebDashboard/Html/scripts/SupporterKeyPage.js b/MediaBrowser.WebDashboard/Html/scripts/SupporterKeyPage.js deleted file mode 100644 index 88748064f..000000000 --- a/MediaBrowser.WebDashboard/Html/scripts/SupporterKeyPage.js +++ /dev/null @@ -1,77 +0,0 @@ -var SupporterKeyPage = { - - onPageShow: function () { - SupporterKeyPage.load(); - }, - - onPageHide: function () { - - }, - - load: function() { - Dashboard.showLoadingMsg(); - var page = $.mobile.activePage; - - ApiClient.getPluginSecurityInfo().done(function (info) { - $('#txtSupporterKey', page).val(info.SupporterKey); - $('#txtLegacyKey', page).val(info.LegacyKey); - if (info.IsMBSupporter) { - $('.supporterOnly', page).show(); - } else { - $('.supporterOnly', page).hide(); - } - Dashboard.hideLoadingMsg(); - }); - }, - - updateSupporterKey: function () { - - Dashboard.showLoadingMsg(); - var page = $.mobile.activePage; - - var key = $('#txtSupporterKey', page).val(); - var legacyKey = $('#txtLegacyKey', page).val(); - - var info = { - SupporterKey: key, - LegacyKey: legacyKey - }; - - ApiClient.updatePluginSecurityInfo(info).done(function () { - Dashboard.resetPluginSecurityInfo(); - Dashboard.hideLoadingMsg(); - SupporterPage.load(); - - }); - - return false; - }, - - retrieveSupporterKey: function () { - - Dashboard.showLoadingMsg(); - var page = $.mobile.activePage; - - var email = $('#txtEmail', page).val(); - - var url = "http://mb3admin.com/admin/service/supporter/retrievekey?email="+email; - console.log(url); - $.post(url).done(function (res) { - var result = JSON.parse(res); - Dashboard.hideLoadingMsg(); - if (result.Success) { - Dashboard.alert("Key emailed to "+email); - } else { - Dashboard.showError(result.ErrorMessage); - } - console.log(result); - - }); - - return false; - } - -}; - -$(document).on('pageshow', "#supporterKeyPage", SupporterKeyPage.onPageShow) - .on('pagehide', "#supporterKeyPage", SupporterKeyPage.onPageHide); |
