This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app/initializers/jquery-plugins.js
Robin Ward 11c812f042
Quite a few Ember-CLI / Upgrade related changes (#11867)
* Quite a few Ember-CLI / Upgrade related changes

They should all be backwards compatible. This is all to help merge our
branches.

* REFACTOR: DRY up username validation

Also avoids overwriting computed properties for compatibility with newer
Ember releases.
2021-01-29 10:19:54 -05:00

15 lines
318 B
JavaScript

import autocomplete from "discourse/lib/autocomplete";
import bootbox from "bootbox";
export default {
name: "jquery-plugins",
initialize() {
// Settings for bootbox
bootbox.animate(false);
bootbox.backdrop(true);
// Initialize the autocomplete tool
$.fn.autocomplete = autocomplete;
},
};