Browse Source
Merge pull request #3619 from abpframework/maliming/select2-model-patch
Add select2-bootstrap-modal-patch.js to Select2ScriptContributor.
pull/3691/head
Halil İbrahim Kalkan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
7 additions and
1 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/Select2/Select2ScriptContributor.cs
-
npm/packs/select2/abp.resourcemapping.js
-
npm/packs/select2/src/select2-bootstrap-modal-patch.js
|
|
|
@ -12,6 +12,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.Select2 |
|
|
|
{ |
|
|
|
//TODO: Add select2.full.min.js or localize!
|
|
|
|
context.Files.AddIfNotContains("/libs/select2/js/select2.min.js"); |
|
|
|
context.Files.AddIfNotContains("/libs/select2/js/select2-bootstrap-modal-patch.js"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -3,6 +3,7 @@ |
|
|
|
"@node_modules/select2/dist/css/select2.min.css": "@libs/select2/css/", |
|
|
|
"@node_modules/select2/dist/js/select2.min.js": "@libs/select2/js/", |
|
|
|
"@node_modules/select2/dist/js/select2.full.min.js": "@libs/select2/js/", |
|
|
|
"@node_modules/select2/dist/js/i18n/*.js": "@libs/select2/js/i18n/" |
|
|
|
"@node_modules/select2/dist/js/i18n/*.js": "@libs/select2/js/i18n/", |
|
|
|
"@node_modules/@abp/select2/src/*.*": "@libs/select2/js/" |
|
|
|
} |
|
|
|
} |
|
|
|
@ -0,0 +1,4 @@ |
|
|
|
/* |
|
|
|
https://select2.org/troubleshooting/common-problems
|
|
|
|
*/ |
|
|
|
$.fn.modal.Constructor.prototype._enforceFocus = function () { }; |