Revision 6b605d3b
Added by Andreas Kohlbecker over 7 years ago
modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
123 | 123 |
); |
124 | 124 |
} |
125 | 125 |
|
126 |
function _add_js_resizable_element($selector, $y_axis_only) { |
|
127 |
|
|
128 |
_add_jquery_ui(); |
|
129 |
$options = ""; |
|
130 |
if($y_axis_only) { |
|
131 |
$options = "resize: function(event, ui) { |
|
132 |
ui.size.width = ui.originalSize.width; |
|
133 |
}, |
|
134 |
handles: \"s\""; |
|
135 |
|
|
136 |
} |
|
137 |
drupal_add_js(" |
|
138 |
jQuery(document).ready(function() { |
|
139 |
jQuery('" . $selector . "').resizable({". $options ."}); |
|
140 |
}); |
|
141 |
", |
|
142 |
array( |
|
143 |
'type' => 'inline', |
|
144 |
'scope' => 'footer' |
|
145 |
) |
|
146 |
); |
|
147 |
} |
|
148 |
|
|
126 | 149 |
function _add_js_openlayers() { |
127 | 150 |
|
128 | 151 |
$openlayers = '/js/map/OpenLayers-2.13.1/OpenLayers.js'; |
Also available in: Unified diff
ref #6087 area filter widget more initial size and resizeable