Text fields focus issue (#46)
This commit is contained in:
parent
6c53e0ef6d
commit
0b2ba88f71
@ -35,6 +35,7 @@ This plugin uses [FontAwesome icons](http://fontawesome.io/)
|
||||
|
||||
### 🆕 Changelog
|
||||
|
||||
* **v 0.6.7** : fixed Github issue #46 : text field focus issue
|
||||
* **v 0.6.6** : New configuration file + Multiple fixes (#30 #31 #35 #36 #37 #38 #41)
|
||||
* **v 0.6.5** : Checklists plugin support (and all other plugins that compute fields when there's an issue update) (Github requests #26 and #28) + custom url support (Github request #29)
|
||||
* **v 0.6.4** : version field with checkbox display is now supported, Target version and Assignee fields are also supported (Github request #24)
|
||||
|
||||
@ -33,7 +33,10 @@ $(document).on(_CONF_LISTENER_TYPE, function(e){
|
||||
if($(e.target).closest('.' + _CONF_LISTENER_TARGET).length) {
|
||||
// avoid text selection if dblclick
|
||||
var sel = window.getSelection ? window.getSelection() : document.selection;
|
||||
if (sel) {
|
||||
var activeElement = document.activeElement;
|
||||
var inputs = ['input', 'select', 'button', 'textarea'];
|
||||
|
||||
if (sel && inputs.indexOf(activeElement.tagName.toLowerCase()) === -1) {
|
||||
if (sel.removeAllRanges) {
|
||||
sel.removeAllRanges();
|
||||
} else if (sel.empty) {
|
||||
|
||||
2
init.rb
2
init.rb
@ -6,7 +6,7 @@ Redmine::Plugin.register :redmine_issue_dynamic_edit do
|
||||
name 'Redmine Dynamic edit Issue plugin'
|
||||
author 'Hugo Zilliox'
|
||||
description 'Allows users to dynamically update issue attributes in detailed view without refreshing the page (JIRA style)'
|
||||
version '0.6.6'
|
||||
version '0.6.7'
|
||||
url 'https://github.com/ilogeek/redmine_issue_dynamic_edit'
|
||||
author_url 'https://hzilliox.fr'
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user