Skip to content

Commit

Permalink
Add a few files missed in last setup webpage tweak commit.
Browse files Browse the repository at this point in the history
Also change the 'save is not hooked up' message on the /Config/*
screens to indicate that it is only those screens on which Save
is not hooked up.  The Storage Group editor applies changes
immediately, so 'saving' is not necessary.
  • Loading branch information
cpinkham committed Mar 24, 2011
1 parent 68524ad commit d392eec
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
12 changes: 8 additions & 4 deletions mythtv/html/setup/js/form_inputs.js
@@ -1,8 +1,6 @@
var hostOptions = "";

function hostsSelect(id) {
var result = "<select id='" + id + "'>";

function getHostsOptionList() {
if (hostOptions.length == 0) {
hostOptions = "";
$.ajaxSetup({ async: false });
Expand All @@ -14,7 +12,13 @@ function hostsSelect(id) {
$.ajaxSetup({ async: true });
}

result += hostOptions;
return hostOptions;
}

function hostsSelect(id) {
var result = "<select id='" + id + "'>";

result += getHostsOptionList();

result += "</select>";

Expand Down
10 changes: 9 additions & 1 deletion mythtv/html/setup/storagegroups.html
@@ -1,5 +1,13 @@
<h3>Storage Groups</h3>
Show only Local Storage Groups: <input id='sgLocalHostOnly' type='checkbox' onClick='javascript:initStorageGroups()'><br>
<div id='sgHostSelect'></div>

<script language="JavaScript" type="text/javascript">
$("#sgHostSelect").html("Host: <select id='sgShowHost' "
+ "onChange='javascript:initStorageGroups()'><option value='ALL'>"
+ "Display ALL Hosts</option>" + getHostsOptionList() + "</select>");
</script>
<br>

<!--
<a href='javascript:addTab("#storagegrouptabs", "/setup/StorageGroups/Wizard.tab_newgroup.html", "New Group")'>Create New Storage Group</a>
-->
Expand Down
3 changes: 2 additions & 1 deletion mythtv/programs/mythbackend/httpconfig.cpp
Expand Up @@ -64,7 +64,8 @@ bool HttpConfig::ProcessRequest(HttpWorkerThread*, HTTPRequest *request)
else
{
QTextStream os(&request->m_response);
os << "<html><body><h3>Save functionality is not hooked up yet</h3><dl>";
os << "<html><body><h3>The Save function for this screen is "
<< "not hooked up yet</h3><dl>";
QStringMap::const_iterator it = request->m_mapParams.begin();
for (; it!=request->m_mapParams.end(); ++it)
{
Expand Down

0 comments on commit d392eec

Please sign in to comment.