1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-03-28 13:41:48 -04:00
parent 4a4c20e7c6
commit ee03ef4f51
27 changed files with 1767 additions and 21 deletions

View file

@ -75,8 +75,14 @@ define(['dialogHelper', 'layoutManager', 'dialogText', 'html!./icons.html', 'css
dlg.querySelector('form').addEventListener('submit', function (e) {
submitValue = dlg.querySelector('.txtPromptValue').value;
dialogHelper.close(dlg);
e.preventDefault();
e.stopPropagation();
// Important, don't close the dialog until after the form has completed submitting, or it will cause an error in Chrome
setTimeout(function () {
dialogHelper.close(dlg);
}, 300);
return false;
});
@ -99,6 +105,7 @@ define(['dialogHelper', 'layoutManager', 'dialogText', 'html!./icons.html', 'css
return dialogHelper.open(dlg).then(function () {
var value = submitValue;
if (value) {
return value;
} else {