Skip to content
Permalink
Browse files

parse variables before rendering widgets

  • Loading branch information...
barisusakli committed Aug 10, 2014
1 parent b5cc852 commit 53d20cf058d70f58b8242346f7203a5f7ce9f9ae
Showing with 3 additions and 2 deletions.
  1. +3 −2 public/src/ajaxify.js
@@ -96,12 +96,13 @@ var ajaxify = ajaxify || {};
translator.translate(template, function(translatedTemplate) {
setTimeout(function() {
$('#content').html(translatedTemplate);

ajaxify.variables.parse();

ajaxify.widgets.render(tpl_url, url, function() {
$(window).trigger('action:ajaxify.end', {url: url});
});

ajaxify.variables.parse();

$(window).trigger('action:ajaxify.contentLoaded', {url: url});

ajaxify.loadScript(tpl_url);

0 comments on commit 53d20cf

Please sign in to comment.
You can’t perform that action at this time.