Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita204d27

Browse files
author
minjk-bl
committed
Change click/focus operation for SuggestInput, VarSelector, DataSelector
1 parent3733634 commita204d27

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

‎js/com/component/DataSelector.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ define([
182182
returntrue;
183183
}
184184
}).focus(function(){
185-
$(this).select();
185+
$(this).val('');
186186
$(this).autocomplete('search',$(this).val());
187187
}).click(function(){
188-
$(this).select();
188+
$(this).val('');
189189
$(this).autocomplete('search',$(this).val());
190190
}).autocomplete('instance')._renderItem=function(ul,item){
191191
return$('<li>').attr('data-value',item.value)

‎js/com/component/SuggestInput.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,11 @@ define([
152152
}
153153
returntrue;
154154
}
155-
}).focus(function(){
155+
}).focus(function(){
156+
$(this).val('');
156157
$(com_util.formatString(".{0}",that.uuid)).autocomplete('search',$(com_util.formatString(".{0}",that.uuid)).val());
157-
}).click(function(){
158+
}).click(function(){
159+
$(this).val('');
158160
$(com_util.formatString(".{0}",that.uuid)).autocomplete('search',$(com_util.formatString(".{0}",that.uuid)).val());
159161
});
160162
});

‎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
returnfalse;
321321
}
322322
}).focus(function(){
323-
$(this).select();
323+
$(this).val('');
324324
$(this).autocomplete('search',$(this).val());
325325
}).click(function(){
326-
$(this).select();
326+
$(this).val('');
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)

[8]ページ先頭

©2009-2025 Movatter.jp