We have custom tab for Media Browser that uses Ajax calls (drupal ajax). After each ajax call we got switched to Library tab. This happens because when we create tabs in media.browser.js
$('#media-browser-tabset').tabs({
selected: activeTab, // jquery < 1.9
active: activeTab, // jquery >= 1.9
show: showFunc, // jquery ui < 1.8
activate: showFunc // jquery ui >= 1.8
});
we do not check if that has happened already.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | media-2378973-jump-to-library-after-ajax-call.patch | 491 bytes | ygerasimov |
Comments
Comment #1
ygerasimov commentedAttached patch adds once() that fixes the issue.
Comment #2
andypostThanx, this is a great UI improvements
Comment #3
aaron commentedThe test bot is down.
Comment #4
andypostyep, that strange. js should not affect testing
Comment #5
andypost@aaron Please commit this quick-fix
Comment #7
aaron commentedCommitted to http://drupalcode.org/project/media.git/commit/710e346.