From 643d5a6ecb74d90ecbd1aaa3e76e8924fc14aa3a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 21 Jan 2017 05:24:31 +0300 Subject: [PATCH] tweak... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/widget/browse.js | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/ui (gen4)/lib/widget/browse.js b/ui (gen4)/lib/widget/browse.js index b7f20dea..8260f7b2 100755 --- a/ui (gen4)/lib/widget/browse.js +++ b/ui (gen4)/lib/widget/browse.js @@ -139,21 +139,22 @@ function(text, options){ var elem = (options.action ? this.Action : this).call(this, text, options) .on('select', function(){ var text = elem.find('.text') + // get the specific .text element... - // select index... - typeof(options.select_text) == typeof(123) ? - text.eq(options.select_text) - .selectText() - // first/last - : (options.select_text == 'first' || options.select_text == 'last') ? - text[options.select_text]() - .selectText() - // selector... - : typeof(options.select_text) == typeof('str') ? - elem.find(options.select_text) - .selectText() - // all... - : text.selectText() + text = + // select index... + typeof(options.select_text) == typeof(123) ? + text.eq(options.select_text) + // first/last + : (options.select_text == 'first' || options.select_text == 'last') ? + text[options.select_text]() + // selector... + : typeof(options.select_text) == typeof('str') ? + elem.find(options.select_text) + // all... + : text + + text.selectText() }) return elem }