G'day.

Salamander skins has compatibility problems with the "Quiz" module for drupal:
http://drupal.org/project/quiz

After creating a quiz and quiz questions are added, one click of the remove button should allow a quiz question to be removed from a quiz (as on garland), however, on Salamander, doing so simply brings up a empty page

CommentFileSizeAuthor
#3 cause.PNG71.73 KBauzy
#3 effect.PNG781.74 KBauzy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Florian’s picture

I have installed the Quiz module but I am not able to reproduce your website behavior. Take a look at my install here http://mediu.radut.net.

auzy’s picture

G'day,

Maybe I'll go through better detailed steps.

To reproduce:
1) Obviously Salamander skins theme must be enabled...
2) Go to node/add, add a multichoice qn (put whatever you want in there, put title "qn1")
3) Go to node/add, add another multichoice qn (put whatever you want in there, put title "qn2")
4) Go to node/add, add a quiz
5) Put a random Title and description, save it
6) The new node will pop up. Go to assign questions hyperlink, or the manage questions tab
7) Under the fieldgroup "Questions always on this quiz (0)", type qn1 into the autocomplete box, and select that quiz question, click add to quiz
8) Under the fieldgroup "Questions always on this quiz (0)", type qn2 into the autocomplete box, and select that quiz question, click add to quiz
9) Click "submit questions".
10) The section will say "Questions always on this quiz (2)" now, instead of (0).
11) Lets try to remove "qn1". Scroll to the Qn1 line, and click the remove hyperlink

Actual behavior:
1)Screen refreshes, and all the contents go missing.. :(
2) If you reopen the quiz from content, and modify the questions, nothing has been deleted.

Expected behavior:
1) The qn1 line disappears
2) User clicks submit questions.. All happy.

More Info:
1) If I have the garland theme enabled sitewide, the behavior is correct, so its somehow related to the salamander theme..
2) I'm using Firefox 3.5rc3, but I recall testing with 3.1 too.

I actually wasn't expecting a response (and was more expecting a community member to know), but great to see one so quick :D I opened up firebug to try to debug it, but I'm not great at debugging JS/CSS/HTML, so didn't succeed :(

Regards,
Andrew

(PS. Sorry for taking so long to reply, but my Geforce 8800 Ultra decided to commit suicide yesterday, it took me longer then expected to work out, and I only got a chance to replace it today). Btw, great theme though. Easily one of the most usable :D

auzy’s picture

FileSize
781.74 KB
71.73 KB

Cross reference with Quiz bug report:
http://drupal.org/node/499472

I have also attached photos to help things be understood a bit more..

Also, unfortunately I don't speak french so couldn't use your website for further testing :(

mbutcher’s picture

Issue tags: +quiz

If it helps at all... the remove function is controlled via a JavaScript AJAX callback which can be found in quiz/quiz.admin.js. The behavior that attaches (and dictates) the removal is handled in Drupal.behaviors.attachRemoveAction on or around line 49.

It is possible that the expectations of the DOM traversal functions there are not matching up with the actual HTML structure of the theme... thought there really are only a few non-class/non-ID dependencies there.

Perhaps someone can look at this function in conjunction with the HTML output from the theme and see what may be the origin of the issue.

If the result indicates that the Quiz JS code should be changed, feel free to post back on #499472: Salamander skins theme incompatible with quiz item removal.

Matt

auzy’s picture

Unfortunately, doesn't seem I'll be able to fix this myself :(

Tried, but not really sure how to do it (only ever debugged my own JS)

Florian’s picture

Status: Active » Closed (fixed)

Should be fixed now. Use salamanderskins 6.x-1.2