Skip to content

Commit 14e92b4

Browse files
author
minjk-bl
committed
SuggsetInput, DataSelector, VarSelector2 change operation on focusing input: remove -> select
1 parent be42fff commit 14e92b4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

js/com/component/DataSelector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ define([
204204
return true;
205205
}
206206
}).focus(function () {
207-
$(this).val('');
207+
$(this).select();
208208
$(this).autocomplete('search', $(this).val());
209209
}).click(function () {
210-
$(this).val('');
210+
$(this).select();
211211
$(this).autocomplete('search', $(this).val());
212212
}).autocomplete('instance')._renderItem = function(ul, item) {
213213
return $('<li>').attr('data-value', item.value)

js/com/component/SuggestInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ define([
154154
return true;
155155
}
156156
}).focus(function() {
157-
$(this).val('');
157+
$(this).select();
158158
$(com_util.formatString(".{0}", that.uuid)).autocomplete('search', $(com_util.formatString(".{0}", that.uuid)).val());
159159
}).click(function() {
160-
$(this).val('');
160+
$(this).select();
161161
$(com_util.formatString(".{0}", that.uuid)).autocomplete('search', $(com_util.formatString(".{0}", that.uuid)).val());
162162
}).autocomplete('instance')._renderItem = function(ul, item) {
163163
if (item.dtype != undefined) {

js/com/component/VarSelector2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,10 @@ define([
320320
return false;
321321
}
322322
}).focus(function () {
323-
$(this).val('');
323+
$(this).select();
324324
$(this).autocomplete('search', $(this).val());
325325
}).click(function () {
326-
$(this).val('');
326+
$(this).select();
327327
$(this).autocomplete('search', $(this).val());
328328
}).autocomplete('instance')._renderItem = function(ul, item) {
329329
return $('<li>').attr('data-value', item.value)

0 commit comments

Comments
 (0)