mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	refactor: Use explicit path when referencing handlebars templates.
This commit is contained in:
		| @@ -285,7 +285,7 @@ exports.activate = function (opts) { | ||||
|     } | ||||
|  | ||||
|     function build_widget() { | ||||
|         var html = templates.render('poll-widget'); | ||||
|         var html = templates.render('widgets/poll-widget'); | ||||
|         elem.html(html); | ||||
|  | ||||
|         elem.find('input.poll-question').on('keyup', function (e) { | ||||
| @@ -346,7 +346,7 @@ exports.activate = function (opts) { | ||||
|     function render_results() { | ||||
|         var widget_data = poll_data.get_widget_data(); | ||||
|  | ||||
|         var html = templates.render('poll-widget-results', widget_data); | ||||
|         var html = templates.render('widgets/poll-widget-results', widget_data); | ||||
|         elem.find('ul.poll-widget').html(html); | ||||
|  | ||||
|         elem.find("button.poll-vote").off('click').on('click', function (e) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user