From 915126cae88c587cfe83dc08d0d541d0ca34c0c4 Mon Sep 17 00:00:00 2001
From: Michael Gapczynski <mtgap@owncloud.com>
Date: Sun, 16 Dec 2012 16:25:08 -0500
Subject: [PATCH] Trigger last action before continuing with creating a new
 file/folder/from link

---
 apps/files/js/files.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 2719e9ade5..d924dab3d6 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -516,6 +516,9 @@ $(document).ready(function() {
 				$('#notification').fadeIn();
 				return;
 			}
+			if (FileList.lastAction) {
+				FileList.lastAction();
+			}
 			var name = getUniqueName($(this).val());
 			if (name != $(this).val()) {
 				FileList.checkName(name, $(this).val(), true);
-- 
GitLab