From aeaa017406441dba65e76c3de26f4ce235d4f272 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 16 Jun 2016 16:33:39 -0400 Subject: [PATCH] (js) Improve Dialog.prompt --- .../js/Common/Dialog.service.js | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/UI/WebServerResources/js/Common/Dialog.service.js b/UI/WebServerResources/js/Common/Dialog.service.js index d09c8e8af..4ce2473af 100644 --- a/UI/WebServerResources/js/Common/Dialog.service.js +++ b/UI/WebServerResources/js/Common/Dialog.service.js @@ -50,6 +50,7 @@ */ Dialog.prompt = function(title, label, options) { var o = options || {}, + id = title.asCSSIdentifier(), d = this.$q.defer(); this.$modal.show({ @@ -58,23 +59,25 @@ escapeToClose: true, template: [ '', - ' ', - '

', - ' ', - ' ', - ' ', - ' ', - '
', + '
', + ' ', + '

', + ' ', + ' ', + ' ', + ' ', + '
', ' ', ' ', ' ' + l('Cancel'), ' ', - ' ', + ' ', ' ' + l('OK'), ' ', ' ', + '
', '
' ].join(''), controller: PromptDialogController