Skip to content
Snippets Groups Projects
Commit 8b135388 authored by Takashi AOKI's avatar Takashi AOKI Committed by Dmitriy Zaporozhets
Browse files

fix high cpu usage issue that occured in Firefox

fixes issue related with #342 (Merge Request view causes 100% CPU in firefox)

Conflicts:
	CHANGELOG
parent 3e0cc37e
No related branches found
No related tags found
No related merge requests found
v 7.1.1
- Fix cpu usage issue in Firefox
v 7.1.0
- Remove observers
- Improve MR discussions
Loading
Loading
Loading
Loading
@@ -20,6 +20,9 @@ $(document).ready ->
$(".div-dropzone-hover").append iconPicture
$(".div-dropzone").append divSpinner
$(".div-dropzone-spinner").append iconSpinner
$(".div-dropzone-spinner").css
"opacity": 0
"display": "none"
 
dropzone = $(".div-dropzone").dropzone(
url: project_image_path_upload
Loading
Loading
@@ -66,13 +69,17 @@ $(document).ready ->
return
 
sending: ->
$(".div-dropzone-spinner").css "opacity", 0.7
$(".div-dropzone-spinner").css
"opacity": 0.7
"display": "inherit"
return
 
complete: ->
$(".dz-preview").remove()
$(".markdown-area").trigger "input"
$(".div-dropzone-spinner").css "opacity", 0
$(".div-dropzone-spinner").css
"opacity": 0
"display": "none"
return
)
 
Loading
Loading
@@ -163,10 +170,14 @@ $(document).ready ->
val + url + "\n"
 
showSpinner = (e) ->
$(".div-dropzone-spinner").css "opacity", 0.7
$(".div-dropzone-spinner").css
"opacity": 0.7
"display": "inherit"
 
closeSpinner = ->
$(".div-dropzone-spinner").css "opacity", 0
$(".div-dropzone-spinner").css
"opacity": 0
"display": "none"
 
showError = (message) ->
checkIfMsgExists = $(".error-alert").children().length
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment