Skip to content

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

@evoltech

Description

@evoltech

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>";
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions