mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Included jQuery in SelectionGroup->FieldHolder(), and used new jQuery.live syntax.
From: Andrew Short <andrewjshort@gmail.com> git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@95033 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
35c6b15edc
commit
d5e2db7f5e
@ -79,9 +79,7 @@ class SelectionGroup extends CompositeField {
|
||||
}
|
||||
|
||||
function FieldHolder() {
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/prototype/prototype.js');
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/behaviour/behaviour.js');
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/prototype_improvements.js');
|
||||
Requirements::javascript(THIRDPARTY_DIR .'/jquery/jquery.js');
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/SelectionGroup.js');
|
||||
Requirements::css(SAPPHIRE_DIR . '/css/SelectionGroup.css');
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('ul.SelectionGroup input.selector').livequery('click', function(){
|
||||
$('ul.SelectionGroup input.selector').live('click', function() {
|
||||
var li = $(this).parent('li')
|
||||
li.addClass('selected');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user