From 8aa90ef045c0a33445704e44b0bc31e4836f1647 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 3 Aug 2015 22:51:18 +0400 Subject: [PATCH] add textselect option to dialog --- plugins/c9.ide.dialog/dialog.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/c9.ide.dialog/dialog.js b/plugins/c9.ide.dialog/dialog.js index 652758af..d7fc753d 100644 --- a/plugins/c9.ide.dialog/dialog.js +++ b/plugins/c9.ide.dialog/dialog.js @@ -190,7 +190,10 @@ define(function(require, module, exports) { } // allow selecting dialog message text - titles.textselect = !custom; + var textselect = options.textselect; + if (textselect == undefined) + textselect = !custom; + titles.textselect = textselect; // When the dialog closes the next dialog can appear plugin.once("hide", next);