mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
prevent double calls to rename
This commit is contained in:
parent
6ed181d52c
commit
1c6dc66ed1
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,9 @@ define [
|
|||
|
||||
invalidModalShowing = false
|
||||
$scope.finishRenaming = () ->
|
||||
# avoid double events when blur and on-enter fire together
|
||||
return if !$scope.entity.renaming
|
||||
|
||||
name = $scope.inputs.name
|
||||
|
||||
if !name.match(new RegExp(ide.validFileRegex))
|
||||
|
|
Loading…
Reference in a new issue