mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-16 08:08:17 +00: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…
Add table
Reference in a new issue