js: do not open extensible set on focus and...
...try to put it out of tab order where necessary
This commit is contained in:
parent
696390968d
commit
c660d3e268
|
@ -360,6 +360,7 @@
|
||||||
* @param ev
|
* @param ev
|
||||||
*/
|
*/
|
||||||
enterSuggestionField: function(ev) {
|
enterSuggestionField: function(ev) {
|
||||||
|
return;
|
||||||
var $el = $(ev.currentTarget);
|
var $el = $(ev.currentTarget);
|
||||||
if ($el.val() === '' || $el.val().match(/\.$/)) {
|
if ($el.val() === '' || $el.val().match(/\.$/)) {
|
||||||
this.getSuggestionList($el)
|
this.getSuggestionList($el)
|
||||||
|
@ -549,6 +550,14 @@
|
||||||
if ($input.closest('form.editor').length) {
|
if ($input.closest('form.editor').length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
var $set = $input.closest('.extensible-set');
|
||||||
|
if ($set.length) {
|
||||||
|
var $textInputs = $('input[type=text]', $set);
|
||||||
|
if ($textInputs.length > 1) {
|
||||||
|
$textInputs.not(':first').attr('tabIndex', '-1');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var $dd = $input.closest('dd');
|
var $dd = $input.closest('dd');
|
||||||
$dd.find('p.description').show();
|
$dd.find('p.description').show();
|
||||||
if ($dd.attr('id') && $dd.attr('id').match(/button/)) {
|
if ($dd.attr('id') && $dd.attr('id').match(/button/)) {
|
||||||
|
|
Loading…
Reference in New Issue