refactor: Use explicit path when referencing handlebars templates.

This commit is contained in:
Thomas Ip
2019-06-29 12:20:19 +08:00
committed by Tim Abbott
parent 8c199fd44c
commit f6aaf43029
28 changed files with 120 additions and 125 deletions

View File

@@ -92,7 +92,7 @@ function update_choice_delete_btn(container, display_flag) {
function create_choice_row(container) {
var context = {};
var row = templates.render("profile-field-choice", context);
var row = templates.render("settings/profile-field-choice", context);
$(container).append(row);
}
@@ -194,7 +194,7 @@ function set_up_choices_field_edit_form(profile_field, field_data) {
_.each(choices_data, function (choice) {
choice_list.append(
templates.render("profile-field-choice", {
templates.render("settings/profile-field-choice", {
text: choice.text,
})
);