function resp_img_add_js in Responsive images and styles 7.2
Same name and namespace in other branches
- 8 resp_img.module \resp_img_add_js()
- 7 resp_img.module \resp_img_add_js()
Add javascript for older browser support
1 call to resp_img_add_js()
- theme_picture in ./
resp_img.module - Theme a picture element.
File
- ./
resp_img.module, line 142
Code
function resp_img_add_js() {
static $added = FALSE;
if (!$added) {
$added = TRUE;
drupal_add_js(drupal_get_path('module', 'resp_img') . '/picturefill/picturefill.js', array(
'type' => 'file',
'weight' => -10,
'group' => JS_DEFAULT,
));
drupal_add_js(drupal_get_path('module', 'resp_img') . '/resp_img.js', array(
'type' => 'file',
'weight' => -10,
'group' => JS_DEFAULT,
));
}
}