EasyAbp / Abp.DynamicEntity

An ABP module that can dynamically create entities at runtime and perform CRUD operations like normal entities
50 stars 8 forks source link

Uncaught TypeError: $(...).sortable is not a function #5

Closed ayeah closed 2 years ago

ayeah commented 2 years ago

Remove datatables-extensions.js, jquery-ui.min.js and jquery-ui.min.css

@gdlcf88 gdlcf88 committed on 1 Jan 2022

I've found the cause of this error, the lack of jquery-ui will make front-end page not working. Also reproduceable in your sample site.

gdlcf88 commented 2 years ago

https://github.com/abpframework/abp/commit/ecbc2bcc845d3557739ed3933ffc8247f95bca5d

The sort bar is only a sample. I removed these files since they are outdated. You can try to fix the problem and create a PR.

Tranphat-freelancer commented 2 years ago

My UI skills are not good, but I quite need this feature can you give me some advice to fix it? @gdlcf88 (;´д`)ゞ

gdlcf88 commented 2 years ago

My UI skills are not good, but I quite need this feature can you give me some advice to fix it? @gdlcf88 (;´д`)ゞ

I will do it when I have time. If you want to contribute, try to compare it with other modules.

ayeah commented 2 years ago

My UI skills are not good, but I quite need this feature can you give me some advice to fix it? @gdlcf88 (;´д`)ゞ

simply use the link in this post, add jquery-ui back to this file [src/EasyAbp.Abp.DynamicEntity.Web/Pages/DynamicEntity/ModelDefinition/Index.cshtml]

you can create a file with same name and same path in your Web project to override the file in the package

gdlcf88 commented 2 years ago

@Tranphat-freelancer Please try again.

ayeah commented 2 years ago

Good job!

Thumbs up!