1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-10-24 10:27:46 +00:00

added ability to add streams

This commit is contained in:
warhog
2015-03-06 12:40:14 +01:00
parent ca40c44dd5
commit 1c4e89def8
2 changed files with 34 additions and 0 deletions

View File

@@ -565,6 +565,13 @@ $('.page-btn').on('click', function (e) {
e.preventDefault();
});
function addStream() {
if($('#streamurl').val().length > 0) {
socket.send('MPD_API_ADD_TRACK,'+$('#streamurl').val());
}
$('#addstream').modal('hide');
}
function confirmSettings() {
if($('#mpd_pw').val().length + $('#mpd_pw_con').val().length > 0) {
if ($('#mpd_pw').val() !== $('#mpd_pw_con').val())