app/assets/javascripts/activeadmin_addons/all.js in activeadmin_addons-1.9.0 vs app/assets/javascripts/activeadmin_addons/all.js in activeadmin_addons-1.10.0
- old
+ new
@@ -169,11 +169,11 @@
defaultSelect: $("body").data("default-select")
}
};
};
$(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) {
configureSelect2(container);
});
@@ -211,11 +211,11 @@
});
}
}
};
$(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) {
setupSearchSelect(container);
});
@@ -281,11 +281,11 @@
$(el).select2(selectOptions);
});
}
};
$(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);
}
Utils.Extend(CustomData, ArrayData);
@@ -427,11 +427,11 @@
}
});
}
};
$(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) {
setupTags(container);
});
@@ -493,11 +493,11 @@
}
});
}
};
$(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) {
setupSelectedList(container);
});
@@ -587,11 +587,11 @@
}
});
}
};
$(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) {
return setupDateTimePicker(fieldset);
});
@@ -611,11 +611,11 @@
return $(entry).datetimepicker(mixedOptions);
});
}
};
$(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);
function setupColorPicker() {
$(".color-picker-input").each(function(i, el) {
@@ -624,11 +624,11 @@
});
});
}
};
$(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);
var objectId = boolSwitch.data("object_id");
var model = boolSwitch.data("model");
@@ -663,11 +663,11 @@
type: "PATCH"
});
});
};
$(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) {
configureInteractiveSelect(container);
});
@@ -747,7 +747,7 @@
});
}
});
};
$(initializer);
- $(document).on("turbolinks:load", initializer);
+ $(document).on("turbolinks:load turbo:load", initializer);
});