Popup API works great! I use it do edit content. The editbox pops up and i can make changes to the content, save it and i get redirected to the page which is refreshing automatically.
However it does not work correctly with accordion. From my point of view there is a Javascript conflict.
I click on edit, the editbox pops up. At frist sight everything looks the same. The CSS is loaded and i can type in text in forms. There are several points that i can edit. For example the text or the title. Furthermore there are optional points. For example the path. The path option is usually hidden and gets displayed by clicking on it (normal Drupal backend behaviour). But it is not working. Obviously the basic Javascript to do this, is not loaded already.
The second problem is a "never ending" script. It is waiting/looking for something that is not there.
I use firebug to analyze this problem. But i just cant get any useful information out of it.
///////////////// Firebug messages /////////////////
(?)()
Refering to popups.js?m (Line 788)
Original line in the code " * "
views_accordion()(Object length=1 0=div.popups-body prevObject=Object)
Refering to views-accordion.js?m (Line 4)
Original line in the code " $.each(Drupal.settings.views_accordion, function(id) { "
(?)()()
Refering to drupal.js?m (Line 42)
Original line in the code " this(context); "
(?)()
Refering to popups.js?m(Line 788)
Original line in the code " * "
attachBehaviors()(Object length=1 0=div.popups-body prevObject=Object)
Refering to drupal.js?m (Line 41)
Original line in the code " jQuery.each(Drupal.behaviors, function() { "
openPathContent()("node/21/edit", ...HTML code of the popup .... \n", a.popups-processed edit?desti...tabs_1%3D1, Object updateMethod=ajax updateSource=initial, null)
Refering to popups.js?m (Line 933)
Original line in the code " Drupal.attachBehaviors(popup.$popupBody()); "
success()(Object title=Presse foto 1 path=node/21/edit)
Refering to popups.js?m (Line 879)
Original line in the code " var popup = Popups.openPathContent(json.path, json.title, json.messages + json.content, element, options, parent); "
success()
Refering to jquery.js?m (Line 2818)
Original line in the code " s.success( data, status ); "
onreadystatechange()()
Refering to jquery.js?m (Line 2773)
Original line in the code " success(); "
Of course the lines of code are just a small extract, you all have to files to get more information :)
There is no issue report on this conflict. Obviously i am one of the first, who uses accordion and the pop api to edit them at the same time.
What do you know about the error messages?
Do you have more information on the conflict with Popup API and accordion?
I am thankful for every answer and I am confident, that i am not the only one you wants to use a popup editbox with accordion :)
Comments
Comment #1
doublewhopper commentedI use the accordion module (http://drupal.org/project/views_accordion)