mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
2140025c20
- Adds ES6 support via Babel - Transforms existing JavaScript to UMD modules - Adds module bundling via Browserify - Existing JavaScript converted to UMD modules - lib.js and leftandmain.js are bundled using browserify - JavaScript minifying of bundles handed by gulp
16 lines
391 B
JavaScript
16 lines
391 B
JavaScript
import $ from './jQuery';
|
|
|
|
$(document).ready(function() {
|
|
$('ul.SelectionGroup input.selector').live('click', function() {
|
|
var li = $(this).closest('li');
|
|
li.addClass('selected');
|
|
|
|
var prev = li.prevAll('li.selected');
|
|
if(prev.length) prev.removeClass('selected');
|
|
var next = li.nextAll('li.selected');
|
|
if(next.length) next.removeClass('selected');
|
|
|
|
$(this).focus();
|
|
});
|
|
});
|