Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quiz-3485142
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
quiz-3485142
Commits
eebe06dc
Commit
eebe06dc
authored
14 years ago
by
falcon
Browse files
Options
Downloads
Patches
Plain Diff
#858272
by xMATTx: Fixed bug where drupal_add_js wasn't used to add javascript
parent
b74d5be7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
question_types/multichoice/theme/multichoice-alternative.tpl.php
+2
-3
2 additions, 3 deletions
...n_types/multichoice/theme/multichoice-alternative.tpl.php
with
2 additions
and
3 deletions
question_types/multichoice/theme/multichoice-alternative.tpl.php
+
2
−
3
View file @
eebe06dc
...
...
@@ -15,8 +15,7 @@ $p = drupal_get_path('module', 'multichoice');
drupal_add_css
(
$p
.
'/theme/multichoice.css'
,
'module'
,
'all'
);
// Add script for using the entire alternative row as a button
print
"
<SCRIPT type='text/javascript'>Drupal.behaviors.multichoiceAlternativeBehavior = function(context) {
drupal_add_js
(
"Drupal.behaviors.multichoiceAlternativeBehavior = function(context) {
$('.multichoice_row')
.filter(':has(:checkbox:checked)')
.addClass('selected')
...
...
@@ -34,7 +33,7 @@ print "
}
}
});
};
</SCRIPT>"
;
};
"
,
'inline'
)
;
// We want to have the checkbox in one table cell, and the title in the next. We store the checkbox and the titles
$options
=
$form
[
'#options'
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment