-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed django admin jQuery conflict issues
- Loading branch information
Showing
14 changed files
with
48 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,3 +76,4 @@ example_2/env/ | |
assets/ | ||
tests/testapp/settings_local.py | ||
node_modules/ | ||
/env3/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,4 +207,4 @@ | |
} | ||
}); | ||
|
||
})(jQuery || django.jQuery); | ||
})(mapWidgets.jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1881,4 +1881,4 @@ | |
} | ||
}); | ||
}); | ||
})(jQuery || django.jQuery); | ||
})(mapWidgets.jQuery); |
5 changes: 1 addition & 4 deletions
5
mapwidgets/static/mapwidgets/js/jquery.custom.magnific-popup.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var mapWidgets = mapWidgets || {}; | ||
|
||
// Use Django Admin jQuery function if exists, otherwise initialise `mapWidgets.jQuery` from global jQuery. | ||
if (typeof django !== "undefined" && django.jQuery){ | ||
mapWidgets.jQuery = django.jQuery.noConflict(); | ||
}else{ | ||
mapWidgets.jQuery = jQuery.noConflict(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,4 +106,4 @@ | |
} | ||
}); | ||
|
||
})(jQuery || django.jQuery); | ||
})(mapWidgets.jQuery); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,5 +52,5 @@ | |
new DjangoGooglePointFieldWidget(mapWidgetOptions); | ||
} | ||
}); | ||
})(jQuery || django.jQuery); | ||
})(mapWidgets.jQuery); | ||
|
2 changes: 1 addition & 1 deletion
2
mapwidgets/static/mapwidgets/js/mw_google_point_inline_field.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters