March-hare/decayimage — Issue #15: Use Ushahidi 'best practice' method for JS hooking
Author: evoltech
Created: 2012-02-24 22:37:37+00:00
State: open

We are currently performing a clever hack for getting our custom JS in, but there us a standard way of already doing this. Consider how [InfoWindow does this](https://github.com/KonpaGroup/InfoWindow/blob/master/hooks/infowindow.php#L26)

```
public function register_script(){
plugin::add_javascript("InfoWindow/media/js/jquery.pagination");
echo plugin::render("javascript");
echo "";
}
```