diff options
author | stephenbroyer <stephen.broyer@sonarsource.com> | 2013-09-19 16:56:25 +0200 |
---|---|---|
committer | stephenbroyer <stephen.broyer@sonarsource.com> | 2013-09-19 17:19:01 +0200 |
commit | 29e03661f09363b56e34303984afc6dabb8b53cf (patch) | |
tree | 9add33a35a9397e51626f2528a1822f114c86c8f /plugins | |
parent | 06ca595fba5875c848a7cf3de21e22a78e675920 (diff) | |
download | sonarqube-29e03661f09363b56e34303984afc6dabb8b53cf.tar.gz sonarqube-29e03661f09363b56e34303984afc6dabb8b53cf.zip |
SONAR-4666 Remove prototypejs from widgets (Events)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb index a60adbb151d..fed5e228547 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb @@ -18,38 +18,38 @@ <script type="text/javascript"> function changeCategory(categoryId, widgetId) { var eventTableMaxSize = 8; - $$('#events_' + widgetId + ' tr.event').invoke('hide'); + $j('#events_' + widgetId + ' tr.event').hide(); var elements; if (categoryId=='all') { - elements = $$('#events_' + widgetId + ' tr.event'); + elements = $j('#events_' + widgetId + ' tr.event'); } else { - elements = $$('#events_' + widgetId + ' tr.cat_' + categoryId); + elements = $j('#events_' + widgetId + ' tr.cat_' + categoryId); } var elementsToDisplay = elements.slice(0,eventTableMaxSize); if (elementsToDisplay.size()==0) { - $('events_' + widgetId).hide(); - $('show_more_events_' + widgetId).hide(); - $('no_event_message_' + widgetId).show(); + $j('#events_' + widgetId).hide(); + $j('#show_more_events_' + widgetId).hide(); + $j('#no_event_message_' + widgetId).show(); } else { - $('events_' + widgetId).show(); - $('no_event_message_' + widgetId).hide(); - elementsToDisplay.invoke('show'); + $j('#events_' + widgetId).show(); + $j('#no_event_message_' + widgetId).hide(); + elementsToDisplay.show(); if (elements.size() > eventTableMaxSize) { - $('show_more_events_' + widgetId).show(); + $j('#show_more_events_' + widgetId).show(); } else { - $('show_more_events_' + widgetId).hide(); + $j('#show_more_events_' + widgetId).hide(); } } } - + function showAllEvents(widgetId) { - var selectedCategory = $('select_category_' + widgetId).value; + var selectedCategory = $j('#select_category_' + widgetId).val(); if (selectedCategory=='all') { - $$('#events_' + widgetId + ' tr.event').invoke('show'); + $j('#events_' + widgetId + ' tr.event').show(); } else { - $$('#events_' + widgetId + ' tr.cat_' + selectedCategory).invoke('show'); + $j('#events_' + widgetId + ' tr.cat_' + selectedCategory).show(); } - $('show_more_events_' + widgetId).hide(); + $j('#show_more_events_' + widgetId).hide(); } </script> |