Skip to content

Commit 107fe65

Browse files
committed
Merge branch 'develop' of github.com:OS2web/os2web_meetings into develop
2 parents e9498cb + 3e8f475 commit 107fe65

File tree

5 files changed

+267
-235
lines changed

5 files changed

+267
-235
lines changed

css/os2web_meetings.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.agenda-item .item-list li{
2+
list-style: none;
3+
margin: 0;
4+
}
5+
6+
.view-os2web-meetings-meeting-details .agenda-bullet-list {
7+
height: auto;
8+
min-height: 25px;
9+
font-size: 15px;
10+
margin-right: 0;
11+
padding-right: 43px;
12+
}
13+
14+

js/os2web_meetings.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
(function ($) {
2+
3+
Drupal.behaviors.os2web_meetings = {
4+
attach: function(context, settings) {
5+
var is_visible = false;
6+
$('.agenda-item').hide();
7+
$('a.agenda-bullet-list').click(function(e) {
8+
e.preventDefault();
9+
$(this).nextAll('.agenda-item').toggle();
10+
$(this).toggleClass('open');
11+
$('a.agenda-bullet-list').not(this).nextAll('.agenda-item').hide();
12+
$('a.agenda-bullet-list').not(this).removeClass('open');
13+
var top = $(this).nextAll('.agenda-item').offset().top;
14+
window.scrollTo(0, top -50);
15+
});
16+
}
17+
};
18+
}(jQuery));

os2web_meetings.make

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ projects[panels][version] = "3.3"
3939

4040

4141
; Basic
42-
projects[ctools][subdir] = "contrib"
43-
projects[ctools][version] = "1.3"
42+
# projects[ctools][subdir] = "contrib"
43+
# projects[ctools][version] = "1.3"
4444

4545
projects[views][subdir] = "contrib"
4646
projects[views][version] = "3.7"

os2web_meetings.module

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77

88
include_once 'os2web_meetings.features.inc';
99

10+
/**
11+
* Implements hook_init().
12+
*/
13+
function os2web_meetings_init(){
14+
drupal_add_css(drupal_get_path('module', 'os2web_meetings') . '/css/os2web_meetings.css', array('group' => CSS_THEME, 'every_page' => FALSE));
15+
drupal_add_js(drupal_get_path('module', 'os2web_meetings') . '/js/os2web_meetings.js');
16+
}
17+
1018
/**
1119
* Implements hook_FORM_alter().
1220
*/

0 commit comments

Comments
 (0)