diff --git a/apps/documenteditor/mobile/app/template/Toolbar.template b/apps/documenteditor/mobile/app/template/Toolbar.template
index 7fbaf69d2..9822b76b6 100644
--- a/apps/documenteditor/mobile/app/template/Toolbar.template
+++ b/apps/documenteditor/mobile/app/template/Toolbar.template
@@ -34,6 +34,9 @@
+
+
+
<% if (!phone) { %>
diff --git a/apps/documenteditor/mobile/app/view/Toolbar.js b/apps/documenteditor/mobile/app/view/Toolbar.js
index 2612f4e89..d1039415f 100644
--- a/apps/documenteditor/mobile/app/view/Toolbar.js
+++ b/apps/documenteditor/mobile/app/view/Toolbar.js
@@ -62,7 +62,8 @@ define([
"click #toolbar-search" : "searchToggle",
"click #toolbar-edit" : "showEdition",
"click #toolbar-add" : "showInserts",
- "click #toolbar-settings" : "showSettings"
+ "click #toolbar-settings" : "showSettings",
+ "click #toolbar-edit-document": "editDocument"
},
// Set innerHTML and get the references to the DOM elements
@@ -100,6 +101,8 @@ define([
setMode: function (mode) {
if (mode.isEdit) {
$('#toolbar-edit, #toolbar-add, #toolbar-undo, #toolbar-redo').show();
+ } else if (mode.canEdit && mode.canRequestEditRights){
+ $('#toolbar-edit-document').show();
}
},
@@ -147,6 +150,10 @@ define([
DE.getController('Settings').showModal();
},
+ editDocument: function () {
+ Common.Gateway.requestEditRights();
+ },
+
textBack: 'Back'
}
})(), DE.Views.Toolbar || {}))
diff --git a/apps/presentationeditor/mobile/app/template/Toolbar.template b/apps/presentationeditor/mobile/app/template/Toolbar.template
index 3fdbea786..aae24fa0d 100644
--- a/apps/presentationeditor/mobile/app/template/Toolbar.template
+++ b/apps/presentationeditor/mobile/app/template/Toolbar.template
@@ -37,6 +37,9 @@
+
+
+
<% if (!phone) { %>
diff --git a/apps/presentationeditor/mobile/app/view/Toolbar.js b/apps/presentationeditor/mobile/app/view/Toolbar.js
index 1cf717fcd..ef1f304e6 100644
--- a/apps/presentationeditor/mobile/app/view/Toolbar.js
+++ b/apps/presentationeditor/mobile/app/view/Toolbar.js
@@ -63,7 +63,8 @@ define([
"click #toolbar-edit" : "showEdition",
"click #toolbar-add" : "showInserts",
"click #toolbar-settings" : "showSettings",
- "click #toolbar-preview" : "showPreview"
+ "click #toolbar-preview" : "showPreview",
+ "click #toolbar-edit-document": "editDocument"
},
// Set innerHTML and get the references to the DOM elements
@@ -101,6 +102,8 @@ define([
setMode: function (mode) {
if (mode.isEdit) {
$('#toolbar-edit, #toolbar-add, #toolbar-undo, #toolbar-redo').show();
+ } else if (mode.canEdit && mode.canRequestEditRights){
+ $('#toolbar-edit-document').show();
}
},
@@ -152,6 +155,10 @@ define([
PE.getController('DocumentPreview').show();
},
+ editDocument: function () {
+ Common.Gateway.requestEditRights();
+ },
+
textBack: 'Back'
}
})(), PE.Views.Toolbar || {}))
diff --git a/apps/spreadsheeteditor/mobile/app/template/Toolbar.template b/apps/spreadsheeteditor/mobile/app/template/Toolbar.template
index f81740d58..189899266 100644
--- a/apps/spreadsheeteditor/mobile/app/template/Toolbar.template
+++ b/apps/spreadsheeteditor/mobile/app/template/Toolbar.template
@@ -34,6 +34,9 @@
+
+
+
<% if (!phone) { %>
diff --git a/apps/spreadsheeteditor/mobile/app/view/Toolbar.js b/apps/spreadsheeteditor/mobile/app/view/Toolbar.js
index dd7e21eac..d9142d328 100644
--- a/apps/spreadsheeteditor/mobile/app/view/Toolbar.js
+++ b/apps/spreadsheeteditor/mobile/app/view/Toolbar.js
@@ -62,7 +62,8 @@ define([
"click #toolbar-search" : "searchToggle",
"click #toolbar-edit" : "showEdition",
"click #toolbar-add" : "showInserts",
- "click #toolbar-settings" : "showSettings"
+ "click #toolbar-settings" : "showSettings",
+ "click #toolbar-edit-document": "editDocument"
},
// Set innerHTML and get the references to the DOM elements
@@ -93,6 +94,8 @@ define([
setMode: function (mode) {
if (mode.isEdit) {
$('#toolbar-edit, #toolbar-add, #toolbar-undo, #toolbar-redo').show();
+ } else if (mode.canEdit && mode.canRequestEditRights){
+ $('#toolbar-edit-document').show();
}
},
@@ -148,6 +151,10 @@ define([
this.$btnEdit.toggleClass('disabled', val);
},
+ editDocument: function () {
+ Common.Gateway.requestEditRights();
+ },
+
textBack: 'Back'
}
})(), SSE.Views.Toolbar || {}))