From 8f88fb9a3b695961de03775b9b49854edf09c14a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 12 Sep 2016 14:09:40 -0400 Subject: [PATCH] fix prompt --- .../bower_components/emby-webcomponents/prompt/prompt.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/bower_components/emby-webcomponents/prompt/prompt.js b/dashboard-ui/bower_components/emby-webcomponents/prompt/prompt.js index 089a2af351..cdcd83cc81 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/prompt/prompt.js +++ b/dashboard-ui/bower_components/emby-webcomponents/prompt/prompt.js @@ -2,8 +2,13 @@ define(['dialogHelper', 'layoutManager', 'scrollHelper', 'globalize', 'dom', 're function setInputProperties(dlg, options) { var txtInput = dlg.querySelector('#txtInput'); + + if (txtInput.label) { + txtInput.label(options.label || ''); + } else { + txtInput.setAttribute('label', options.label || ''); + } txtInput.value = options.value || ''; - txtInput.label(options.label || ''); } function showDialog(options, template) {