aboutsummaryrefslogtreecommitdiffstats
path: root/demos/search.js
Commit message (Collapse)AuthorAgeFilesLines
* Build: Fix the ESLint config for demosMichał Gołębiowski-Owczarek2024-10-171-577/+577
| | | | | | | | The ESLint config for `demos` extends the one for the `ui` directory. However, the `ui` one used to not be a root one, making the `demos` one effectively not depend on the `jquery` preset. Fix that and fix lots of lint violations in `demos/search.js`. Closes gh-2303
* Demos: Make autocomplete demos work on jqueryui.comMichał Gołębiowski-Owczarek2024-07-301-1/+14
| | | | | | | | | | | | | | | | | The `jqueryui.com` demos build process deAMDifies HTML files, replacing required JS files with direct script tags. On the other hand, when running demos locally from the jQuery UI repository, RequireJS is used. This used to work fine until we got a new `search.js` file introduced in gh-2187. The deAMDifying process doesn't touch non-HTML files which made loading autocomplete demos crash on "require is not a function" To resolve the issues without a major rearchitecture of the build process, the `search.js` file now detects AMD and uses `require`, falling back to relying on the `jQuery` global in the other case. Closes gh-2274 Ref gh-2187 Ref jquery/jqueryui.com#216
* demos: Replace search.php with $.ajaxTransport() mockTimo Tijhof2024-01-031-0/+616
Fixes jquery/jqueryui.com#203 Closes gh-2187