Commit e9f4ed62 authored by Evan Goldenberg's avatar Evan Goldenberg Committed by Richard Mansfield
Browse files

use get_instance_config_javascript for the creative commons block


Signed-off-by: default avatarEvan Goldenberg <evang@catalyst.net.nz>
parent a7287d28
......@@ -73,6 +73,10 @@ class PluginBlocktypeCreativecommons extends SystemBlocktype {
return true;
}
public static function get_instance_config_javascript() {
return array('js/creativecommons.js');
}
public static function instance_config_save($values) {
$license = 'by';
if (1 == $values['noncommercial']) {
......
......@@ -162,7 +162,7 @@ if ($viewtheme && !isset($allowedthemes[$viewtheme])) {
exit;
}
$javascript = array('views', 'tinymce', 'paginator', 'tablerenderer', 'artefact/file/js/filebrowser.js', 'lib/pieforms/static/core/pieforms.js', 'blocktype/creativecommons/js/creativecommons.js');
$javascript = array('views', 'tinymce', 'paginator', 'tablerenderer', 'artefact/file/js/filebrowser.js', 'lib/pieforms/static/core/pieforms.js');
$javascript = array_merge($javascript, $view->get_blocktype_javascript());
$smarty = smarty($javascript, $stylesheets, false, $extraconfig);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment