Ilogeek / redmine_issue_dynamic_edit

Allows users to dynamically update (AJAX) issue's attributes from issue details page without any refresh (JIRA like)
http://www.redmine.org/plugins/redmine_issue_dynamic_edit
MIT License
137 stars 55 forks source link

Loading... #16

Closed sykiemikey closed 6 years ago

sykiemikey commented 6 years ago

Just upgraded to newest version and found any time I make a dynamic change, the loading progress popup just goes and goes and goes and never goes away. I refresh and/or hit back and find that the change was made.

dynamic_edit_error redmine_versions

Tested behavior in IE, Firefox and Chrome.

Ilogeek commented 6 years ago

Hello Michael,

I'm sure we will find a solution and make it works 👍

TomyDMG commented 6 years ago

Hi, have same problem. Output from js console after change any field:

[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:4
ajax @ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:4
issueDynamicUpdate @ issue_dynamic_edit.js:150
(anonymous) @ issue_dynamic_edit.js:266
dispatch @ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:3
r.handle @ jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:3
ListPicker._handleMouseUp
jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:4 Uncaught TypeError: Cannot read property 'hasChildNodes' of undefined
    at jsToolBar.draw (jstoolbar-textile.min.js:1)
    at initEditFieldListeners (issue_dynamic_edit.js:375)
    at Object.success (issue_dynamic_edit.js:210)
    at j (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:2)
    at x (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:4)
    at b (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:4)
    at Object.send (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:4)
    at Function.ajax (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:4)
    at issueDynamicUpdate (issue_dynamic_edit.js:150)
TomyDMG commented 6 years ago

And this message on page refresh:

Uncaught TypeError: Cannot read property 'hasChildNodes' of undefined
    at jsToolBar.draw (jstoolbar-textile.min.js:1)
    at initEditFieldListeners (issue_dynamic_edit.js:375)
    at issue_dynamic_edit.js:380
Ilogeek commented 6 years ago

Hello @TomyDMG

Thank you for your help and your messages. Thanks to them I was able to discover the problem and fixed it !

The problem occured when there were no description for the current issue. I added a condition to avoid the JS error and everything works fine now

If you find any problem with this update don't hesitate to post it here and we will find a solution

If you find the plugin helpful, please take a minute to star it on Github and rate it on http://www.redmine.org/plugins/redmine_issue_dynamic_edit 👍