From b20151fff373100da7946df93afb7dd4dccea3e4 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 23 Mar 2013 00:04:36 -0400 Subject: copy dashboard to the output folder and load from the file system, instead of using embedded resources --- .../Html/scripts/UserProfilesPage.js | 76 ---------------------- 1 file changed, 76 deletions(-) delete mode 100644 MediaBrowser.WebDashboard/Html/scripts/UserProfilesPage.js (limited to 'MediaBrowser.WebDashboard/Html/scripts/UserProfilesPage.js') diff --git a/MediaBrowser.WebDashboard/Html/scripts/UserProfilesPage.js b/MediaBrowser.WebDashboard/Html/scripts/UserProfilesPage.js deleted file mode 100644 index b6fe09716..000000000 --- a/MediaBrowser.WebDashboard/Html/scripts/UserProfilesPage.js +++ /dev/null @@ -1,76 +0,0 @@ -var UserProfilesPage = { - onPageShow: function () { - - UserProfilesPage.loadPageData(); - }, - - loadPageData: function () { - - Dashboard.showLoadingMsg(); - ApiClient.getUsers().done(UserProfilesPage.renderUsers); - }, - - renderUsers: function (users) { - - var html = ""; - - html += '
  • Users

  • '; - - for (var i = 0, length = users.length; i < length; i++) { - - var user = users[i]; - - html += "
  • "; - - html += ""; - - if (user.PrimaryImageTag) { - - var url = ApiClient.getUserImageUrl(user.Id, { - width: 225, - tag: user.PrimaryImageTag, - type: "Primary" - }); - html += ""; - } else { - html += ""; - } - - html += "

    " + user.Name + "

    "; - - html += "
    "; - - html += "Delete"; - - html += "
  • "; - } - - $('#ulUserProfiles', $('#userProfilesPage')).html(html).listview('refresh'); - - Dashboard.hideLoadingMsg(); - }, - - deleteUser: function (link) { - - var name = link.getAttribute('data-username'); - - var msg = "Are you sure you wish to delete " + name + "?"; - - Dashboard.confirm(msg, "Delete User", function (result) { - - if (result) { - Dashboard.showLoadingMsg(); - - var id = link.getAttribute('data-userid'); - - ApiClient.deleteUser(id).done(function () { - - Dashboard.validateCurrentUser(); - UserProfilesPage.loadPageData(); - }); - } - }); - } -}; - -$(document).on('pageshow', "#userProfilesPage", UserProfilesPage.onPageShow); -- cgit v1.2.3