It is a widely used standard that the AJAX loaded content could be closed on clicking on the overlay or on the page content. When the item title is not display, this option gives users a more intuitive way to close the item.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | taskbar-click_close-1676364-1.patch | 424 bytes | mahtoranjeet |
Comments
Comment #1
jcisio commentedComment #3
mahtoranjeet commentedI had created an issue for this feature http://drupal.org/node/1786376.
Found this issue so close that one was duplicate.
I saw the setting was already added but the JS was not working properly. fixed the js code.
Comment #4
jcisio commentedOk, it does not work if the autoclose option is not enabled. Thus we could either modify Drupal.taskbar.closeAll to bypass that check, or copy logic in that function (removeClass('taskbar-item-active') when an item is closed).
Comment #5
mahtoranjeet commentedCould you test this again
I have tested this with autoclose option disabled. It is working fine for me.
Comment #6
jcisio commentedI meant the current code. About the patch, it does not remove the class (what is said in #4).
Comment #7
jcisio commentedFixed with http://drupalcode.org/project/taskbar.git/commit/1f08d83 (D7) and http://drupalcode.org/project/taskbar.git/commit/83dc47d (D6).
Comment #8
mahtoranjeet commentedGreat