Add javelin_tag(), convert easy callsites
Summary: - Implements `javelin_tag()`, which is `javelin_render_tag()` on top of `phutil_tag()` instead of `phutil_render_tag()`. - Manually converts all or almost all of the trivial callsites. Test Plan: - Site does not seem any more broken than before. Reviewers: vrana Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D4639
This commit is contained in:
@@ -62,15 +62,15 @@ final class DiffusionCommitEditController extends DiffusionController {
|
||||
->setValue($proj_t_values)
|
||||
->setID($tokenizer_id)
|
||||
->setCaption(
|
||||
javelin_render_tag(
|
||||
javelin_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => '/project/create/',
|
||||
'mustcapture' => true,
|
||||
'sigil' => 'project-create',
|
||||
),
|
||||
'Create New Project'))
|
||||
->setDatasource('/typeahead/common/projects/'));;
|
||||
pht('Create New Project')))
|
||||
->setDatasource('/typeahead/common/projects/'));;
|
||||
|
||||
Javelin::initBehavior('project-create', array(
|
||||
'tokenizerID' => $tokenizer_id,
|
||||
|
||||
Reference in New Issue
Block a user