mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 08:36:42 +00:00
fixed minor issue with eating hostname field and textbox updates
This commit is contained in:
parent
dda060acb9
commit
ff753adcfe
@ -49,7 +49,6 @@
|
||||
</div>
|
||||
<div class="mdl-select">
|
||||
<select id="selectHost">
|
||||
<option value="">No history available</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="button-holder">
|
||||
|
@ -151,6 +151,7 @@ function hostChosen() {
|
||||
hosts.push(target);
|
||||
saveHosts();
|
||||
$('#GFEHostIPField').val(''); // eat the contents of the textbox
|
||||
$('#GFEHostIPField').parent().removeClass('is-dirty');
|
||||
}
|
||||
showApps();
|
||||
});
|
||||
@ -405,9 +406,6 @@ function onWindowLoad(){
|
||||
// load previously connected hosts
|
||||
chrome.storage.sync.get('hosts', function(previousValue) {
|
||||
hosts = previousValue.hosts != null ? previousValue.hosts : [];
|
||||
if ($('#selectHost')[0].length > 0) {
|
||||
$('#selectHost')[0].remove($('#selectHost')[0].selectedIndex);
|
||||
}
|
||||
for(var i = 0; i < hosts.length; i++) { // programmatically add each new host.
|
||||
var opt = document.createElement('option');
|
||||
opt.appendChild(document.createTextNode(hosts[i]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user