Yarden Shoham 
							
						 
					 
					
						
						
							
						
						c86d033a3e 
					 
					
						
						
							
							Remove jQuery from the Unicode escape button ( #29369 )  
						
						... 
						
						
						
						- Switched to plain JavaScript
- Tested the Unicode escape button functionality and it works as before
# Demo using JavaScript without jQuery

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2024-02-24 20:11:51 +01:00 
						 
				 
			
				
					
						
							
							
								Yarden Shoham 
							
						 
					 
					
						
						
							
						
						ade1110e8b 
					 
					
						
						
							
							Remove jQuery from repo wiki creation page ( #29271 )  
						
						... 
						
						
						
						- Switched to plain JavaScript
- Tested the wiki creation form functionality and it works as before
# Demo using JavaScript without jQuery

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: silverwind <me@silverwind.io > 
						
						
					 
					
						2024-02-20 11:37:37 +01:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						658cbddbfb 
					 
					
						
						
							
							Make submit event code work with both jQuery event and native event ( #29223 )  
						
						... 
						
						
						
						Partially related to #29200  and fix other potential bugs.
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2024-02-17 21:48:10 +01:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						f290c24d28 
					 
					
						
						
							
							Avoid showing unnecessary JS errors when there are elements with different origin on the page ( #29081 )  
						
						... 
						
						
						
						Try to fix  #29080  
						
						
					 
					
						2024-02-08 02:42:18 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						6632d1497c 
					 
					
						
						
							
							Polyfill SubmitEvent for PaleMoon ( #28441 )  
						
						
						
						
					 
					
						2023-12-15 07:26:36 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						73b63d9311 
					 
					
						
						
							
							Replace ajax with fetch, improve image diff ( #27267 )  
						
						... 
						
						
						
						1. Dropzone attachment removal, pretty simple replacement
2. Image diff: The previous code fetched every image twice, once via
`img[src]` and once via `$.ajax`. Now it's only fetched once and a
second time only when necessary. The image diff code was partially
rewritten.
---------
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2023-10-11 12:34:21 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						23ae939ef3 
					 
					
						
						
							
							Improve "goto issue by number" button ( #24577 )  
						
						... 
						
						
						
						Follow #24479 





---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2023-05-10 15:50:58 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						93eb914438 
					 
					
						
						
							
							Improve markdown editor: width, height, preferred ( #23895 )  
						
						... 
						
						
						
						Follow #23876 
1. Fine tune the heights of the editors (like before)
    * Auto expand the editor (increase/decrease the height) when editing
2. Remember user's last used editor (textarea/easymde) in LocalStorage,
then next time the editor will be switched automatically
* No need to introduce extra config option, it satisfies all users,
including who prefer EasyMDE
3. Also fix the width problem of Review Panel
Screenshot:
<details>






</details>
---------
Co-authored-by: silverwind <me@silverwind.io > 
						
						
					 
					
						2023-04-07 13:03:29 -04:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						fcb9ef8788 
					 
					
						
						
							
							Remove assertion debug code for show/hide refactoring ( #23576 )  
						
						... 
						
						
						
						When doing the refactoring:
* #22950 
I added some debug mode code (assertShown) to help to catch bugs, it did
catch some bugs like:
* #23074 
If it has been proved that there is no more bugs, this assertion could
be removed easily and clearly.
Feel free to decide when to remove it (feel free to convert it from
Draft to Ready for Review).
cc: @silverwind 
						
						
					 
					
						2023-04-02 00:03:00 -04:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						ae36113568 
					 
					
						
						
							
							Remove jQuery ready usage ( #23858 )  
						
						... 
						
						
						
						Replace it with equal function of our own and enable the eslint rule to
forbid future usage. 
						
						
					 
					
						2023-04-01 18:40:22 -04:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						a7e98d70b6 
					 
					
						
						
							
							Fix the show/hide methods for string selector ( #23042 )  
						
						... 
						
						
						
						At that moment I made a mistake (failed to detect a JS variable type
correctly)
Close  #23040  
						
						
					 
					
						2023-02-21 11:09:03 -06:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						d32af84a10 
					 
					
						
						
							
							Refactor hiding-methods, remove jQuery show/hide, remove .hide class, remove inline style=display:none ( #22950 )  
						
						... 
						
						
						
						Close  #22847 
This PR:
* introduce Gitea's own `showElem` and related functions
* remove jQuery show/hide
* remove .hide class
* remove inline style=display:none 
From now on:
do not use:
* "[hidden]" attribute: it's too weak, can not be applied to an element
with "display: flex"
* ".hidden" class: it has been polluted by Fomantic UI in many cases
* inline style="display: none": it's difficult to tweak
* jQuery's show/hide/toggle: it can not show/hide elements with
"display: xxx !important"
only use:
* this ".gt-hidden" class
* showElem/hideElem/toggleElem functions in "utils/dom.js"
cc: @silverwind , this is the all-in-one PR 
					
						2023-02-19 12:06:14 +08:00