All files for deployment ready and tested - further development in this repo.

This commit is contained in:
2025-09-22 10:42:52 +02:00
parent 57b738e9ce
commit 12c3181ad2
394 changed files with 89982 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import $ from "jquery";
/**
* For grappelli 2.14, converts a django.jQuery instance to a grp.jQuery
* instance. Otherwise (if grappelli is not present, or for grappelli <= 2.13,
* where the grappelli jQuery instance is the same as django's), returns the
* object that was passed in, unchanged.
*/
function grp$($sel) {
if (typeof window.grp === "undefined") {
return $($sel);
}
if (window.grp.jQuery.fn.init === $.fn.init) {
return $($sel);
}
const $grpSel = window.grp.jQuery($sel);
if ($sel.prevObject) {
$grpSel.prevObject = grp$($sel.prevObject);
}
return $grpSel;
}
export default grp$;