mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
templates: Replace templates.render with require calls.
This removes an unnecessary layer of indirection and allows webpack to catch filename mistakes. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
706f13b671
commit
db0b33842c
@@ -1,3 +1,5 @@
|
||||
var render_confirm_dialog = require("../templates/confirm_dialog.hbs");
|
||||
|
||||
var confirm_dialog = (function () {
|
||||
|
||||
var exports = {};
|
||||
@@ -28,7 +30,7 @@ var exports = {};
|
||||
*/
|
||||
|
||||
exports.launch = function (conf) {
|
||||
var html = templates.render("confirm_dialog");
|
||||
var html = render_confirm_dialog();
|
||||
var confirm_dialog = $(html);
|
||||
|
||||
var conf_fields = [
|
||||
|
||||
Reference in New Issue
Block a user