Skip to content

Commit

Permalink
trigger event fire to notify filter js that html content on page has …
Browse files Browse the repository at this point in the history
…changed
  • Loading branch information
jamiepratt committed Feb 4, 2017
1 parent 0d8f1a0 commit db1fefa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion amd/build/ajaxcheck.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions amd/src/ajaxcheck.js
@@ -1,4 +1,4 @@
define(['jquery', 'core/ajax', 'core/notification'], function($, ajax, notification) {
define(['jquery', 'core/ajax', 'core/notification', 'core/event'], function($, ajax, notification, event) {

var submit_buttons = function () {
return $('div.que input.submit');
Expand All @@ -16,6 +16,7 @@ define(['jquery', 'core/ajax', 'core/notification'], function($, ajax, notificat
for (var i = 0; i < response.questions.length; i++) {
var question = response.questions[i];
question_div(question.slot).replaceWith(question.html);
event.notifyFilterContentUpdated($(question_div(question.slot)));

outcome_div(question.slot).hide().slideDown('slow');
$("body").css("cursor", "default");
Expand All @@ -26,7 +27,6 @@ define(['jquery', 'core/ajax', 'core/notification'], function($, ajax, notificat
var replace_navigation_panel_html = function (response) {

$("#mod_quiz_navblock div.content").html(response.navigationpanelhtml);

};

var submit_button_click = function (event) {
Expand Down

0 comments on commit db1fefa

Please sign in to comment.