Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Ushahidi 'best practice' method for JS hooking #15

Open
evoltech opened this issue Feb 24, 2012 · 0 comments
Open

Use Ushahidi 'best practice' method for JS hooking #15

evoltech opened this issue Feb 24, 2012 · 0 comments

Comments

@evoltech
Copy link
Member

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

  public function register_script(){
    plugin::add_javascript("InfoWindow/media/js/jquery.pagination");
    echo plugin::render("javascript");
    echo "<script src=\"".url::base()."infowindow\"></script>";
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant