[Libreoffice-commits] online.git: loleaflet/dist

Jan Holesovsky kendy at collabora.com
Tue Apr 5 15:55:45 UTC 2016


 loleaflet/dist/toolbar/toolbar.js |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

New commits:
commit 560dc6c6abeea7e59c3d3b9a6fcdd44fdc9f9b8a
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Tue Apr 5 17:55:05 2016 +0200

    loleaflet: It is not necessary to inform about EDITING, that's the default.

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index b797be2..ce4a000 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -895,12 +895,7 @@ map.on('editlock', function (e) {
 		toolbar.disable('takeedit');
 		toolbar.set('takeedit', {hint: _('You are editing (others can only view)')});
 
-		$('#takeedit_text')
-			.w2tag('You are editing now')
-			.html('EDITING');
-		setTimeout(function() {
-			$('#takeedit_text').w2tag('');
-		}, 5000);
+		$('#takeedit_text').html('EDITING');
 	}
 	else {
 		toolbar.uncheck('takeedit');
@@ -911,7 +906,7 @@ map.on('editlock', function (e) {
 			.html('VIEWING');
 		setTimeout(function() {
 			$('#takeedit_text').w2tag('');
-		}, 5000);
+		}, 3000);
 	}
 });
 


More information about the Libreoffice-commits mailing list