Skip to content

Commit

Permalink
Merge pull request #365 from jdugarte/jdugarte/add-turbo-event
Browse files Browse the repository at this point in the history
Add turbo event
  • Loading branch information
rjherrera authored Dec 27, 2021
2 parents db787b9 + 01dcded commit 51a0e4b
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions app/assets/javascripts/activeadmin_addons/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
};
};
$(initializer$9);
$(document).on("turbolinks:load", initializer$9);
$(document).on("turbolinks:load turbo:load", initializer$9);
var initializer$8 = function() {
configureSelect2(document);
$(document).on("has_many_add:after", function(event, container) {
Expand Down Expand Up @@ -213,7 +213,7 @@
}
};
$(initializer$8);
$(document).on("turbolinks:load", initializer$8);
$(document).on("turbolinks:load turbo:load", initializer$8);
var initializer$7 = function() {
setupSearchSelect(document);
$(document).on("has_many_add:after", function(event, container) {
Expand Down Expand Up @@ -283,7 +283,7 @@
}
};
$(initializer$7);
$(document).on("turbolinks:load", initializer$7);
$(document).on("turbolinks:load turbo:load", initializer$7);
$.fn.select2.amd.define("select2/data/nestedCustomAdapter", [ "select2/data/array", "select2/utils" ], function(ArrayData, Utils) {
function CustomData($element, options) {
CustomData.__super__.constructor.call(this, $element, options);
Expand Down Expand Up @@ -429,7 +429,7 @@
}
};
$(initializer$6);
$(document).on("turbolinks:load", initializer$6);
$(document).on("turbolinks:load turbo:load", initializer$6);
var initializer$5 = function() {
setupTags(document);
$(document).on("has_many_add:after", function(event, container) {
Expand Down Expand Up @@ -495,7 +495,7 @@
}
};
$(initializer$5);
$(document).on("turbolinks:load", initializer$5);
$(document).on("turbolinks:load turbo:load", initializer$5);
var initializer$4 = function() {
setupSelectedList(document);
$(document).on("has_many_add:after", function(event, container) {
Expand Down Expand Up @@ -589,7 +589,7 @@
}
};
$(initializer$4);
$(document).on("turbolinks:load", initializer$4);
$(document).on("turbolinks:load turbo:load", initializer$4);
var initializer$3 = function() {
setupDateTimePicker(document);
$(document).on("has_many_add:after", ".has_many_container", function(event, fieldset) {
Expand All @@ -613,7 +613,7 @@
}
};
$(initializer$3);
$(document).on("turbolinks:load", initializer$3);
$(document).on("turbolinks:load turbo:load", initializer$3);
var initializer$2 = function() {
setupColorPicker();
$(document).on("has_many_add:after", setupColorPicker);
Expand All @@ -626,7 +626,7 @@
}
};
$(initializer$2);
$(document).on("turbolinks:load", initializer$2);
$(document).on("turbolinks:load turbo:load", initializer$2);
var initializer$1 = function() {
$(".toggle-bool-switch").click(function(e) {
var boolSwitch = $(e.target);
Expand Down Expand Up @@ -665,7 +665,7 @@
});
};
$(initializer$1);
$(document).on("turbolinks:load", initializer$1);
$(document).on("turbolinks:load turbo:load", initializer$1);
var initializer = function() {
configureInteractiveSelect(document);
$(document).on("has_many_add:after", function(event, container) {
Expand Down Expand Up @@ -749,5 +749,5 @@
});
};
$(initializer);
$(document).on("turbolinks:load", initializer);
$(document).on("turbolinks:load turbo:load", initializer);
});
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ var initializer = function() {
};

$(initializer);
$(document).on('turbolinks:load', initializer);
$(document).on('turbolinks:load turbo:load', initializer);
2 changes: 1 addition & 1 deletion app/javascript/activeadmin_addons/addons/toggle_bool.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ var initializer = function() {
};

$(initializer);
$(document).on('turbolinks:load', initializer);
$(document).on('turbolinks:load turbo:load', initializer);
2 changes: 1 addition & 1 deletion app/javascript/activeadmin_addons/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ var initializer = function() {
};

$(initializer);
$(document).on('turbolinks:load', initializer);
$(document).on('turbolinks:load turbo:load', initializer);
2 changes: 1 addition & 1 deletion app/javascript/activeadmin_addons/inputs/color-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ var initializer = function() {
};

$(initializer);
$(document).on('turbolinks:load', initializer);
$(document).on('turbolinks:load turbo:load', initializer);
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ var initializer = function() {
};

$(initializer);
$(document).on('turbolinks:load', initializer);
$(document).on('turbolinks:load turbo:load', initializer);
2 changes: 1 addition & 1 deletion app/javascript/activeadmin_addons/inputs/nested-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,4 @@ var initializer = function() {
};

$(initializer);
$(document).on('turbolinks:load', initializer);
$(document).on('turbolinks:load turbo:load', initializer);
2 changes: 1 addition & 1 deletion app/javascript/activeadmin_addons/inputs/search-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ var initializer = function() {
};

$(initializer);
$(document).on('turbolinks:load', initializer);
$(document).on('turbolinks:load turbo:load', initializer);
2 changes: 1 addition & 1 deletion app/javascript/activeadmin_addons/inputs/select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ var initializer = function() {
};

$(initializer);
$(document).on('turbolinks:load', initializer);
$(document).on('turbolinks:load turbo:load', initializer);
2 changes: 1 addition & 1 deletion app/javascript/activeadmin_addons/inputs/selected-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ var initializer = function() {
};

$(initializer);
$(document).on('turbolinks:load', initializer);
$(document).on('turbolinks:load turbo:load', initializer);
2 changes: 1 addition & 1 deletion app/javascript/activeadmin_addons/inputs/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ var initializer = function() {
};

$(initializer);
$(document).on('turbolinks:load', initializer);
$(document).on('turbolinks:load turbo:load', initializer);

0 comments on commit 51a0e4b

Please sign in to comment.