diff --git a/apps/pc_frontend/config/view.yml b/apps/pc_frontend/config/view.yml deleted file mode 100644 index bdd6d64..0000000 --- a/apps/pc_frontend/config/view.yml +++ /dev/null @@ -1,2 +0,0 @@ -default: - javascripts: [ /opDropboxPlugin/js/bootstrap-modal.js:{ position : last } , /opDropboxPlugin/js/filedialog.js:{ position : last } ] diff --git a/config/opDropboxPluginConfiguration.class.php b/config/opDropboxPluginConfiguration.class.php new file mode 100644 index 0000000..73d22b8 --- /dev/null +++ b/config/opDropboxPluginConfiguration.class.php @@ -0,0 +1,15 @@ +dispatcher->connect('op_action.pre_execute', array($this, 'appendJavascripts')); + } + + public function appendJavascripts(sfEvent $event) + { + $event['actionInstance']->getResponse()->addJavascript('/opDropboxPlugin/js/bootstrap-modal.js', 'last'); + $event['actionInstance']->getResponse()->addJavascript('/opDropboxPlugin/js/filedialog.js', 'last'); + } +}