From 5d6c1d52bdb5aa3addc26d1e105749a8eda35301 Mon Sep 17 00:00:00 2001
From: Thomas Mueller <thomas.mueller@tmit.eu>
Date: Sat, 19 Jan 2013 21:37:05 +0100
Subject: [PATCH] replace #notification with OC.Notification call

---
 apps/files/js/files.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index ce5a8096bf..6486468eaf 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -563,8 +563,7 @@ $(document).ready(function() {
 			event.preventDefault();
 			var newname=input.val();
 			if(type == 'web' && newname.length == 0) {
-				$('#notification').text(t('files', 'URL cannot be empty.'));
-				$('#notification').fadeIn();
+				OC.Notification.show(t('files', 'URL cannot be empty.'));
 				return false;
 			} else if (type != 'web' && !Files.isFileNameValid(newname)) {
 				return false;
-- 
GitLab