Merge pull request #82 from iwanders/improvement_stream_ui

Improve the add stream dialog user experience.
This commit is contained in:
Andy 2015-09-20 15:55:19 +02:00
commit b211543890
1 changed files with 8 additions and 0 deletions

View File

@ -116,6 +116,13 @@ $(document).ready(function(){
}
});
$('#addstream').on('shown.bs.modal', function () {
$('#streamurl').focus();
})
$('#addstream form').on('submit', function (e) {
addStream();
});
if(!notificationsSupported())
$('#btnnotify').addClass("disabled");
else
@ -583,6 +590,7 @@ function addStream() {
if($('#streamurl').val().length > 0) {
socket.send('MPD_API_ADD_TRACK,'+$('#streamurl').val());
}
$('#streamurl').val("");
$('#addstream').modal('hide');
}