diff --git a/src/main/webapp/app/view/FreetextAnswerPanel.js b/src/main/webapp/app/view/FreetextAnswerPanel.js index cf8ace7229294ae84b092b3ef6f58d58bfd1e5f8..f3c17795ca840554e0fef653c74e0248492f1ef4 100644 --- a/src/main/webapp/app/view/FreetextAnswerPanel.js +++ b/src/main/webapp/app/view/FreetextAnswerPanel.js @@ -318,7 +318,7 @@ Ext.define('ARSnova.view.FreetextAnswerPanel', { var screenWidth = (window.innerWidth > 0) ? window.innerWidth : screen.width; ARSnova.app.innerScrollPanel = this; - if (screenWidth > 700) { + if (screenWidth > 700 && ARSnova.app.userRole === ARSnova.app.USER_ROLE_SPEAKER) { this.zoomButton.show(); this.initializeZoomComponents(); } diff --git a/src/main/webapp/app/view/FreetextDetailAnswer.js b/src/main/webapp/app/view/FreetextDetailAnswer.js index a6ed22f1eaa0cc65e65066d4760e1a9e6c9e759e..e7ed8949b1d59010cb37c8398a39a641357efcb8 100644 --- a/src/main/webapp/app/view/FreetextDetailAnswer.js +++ b/src/main/webapp/app/view/FreetextDetailAnswer.js @@ -234,7 +234,7 @@ Ext.define('ARSnova.view.FreetextDetailAnswer', { ARSnova.app.innerScrollPanel = this; var screenWidth = (window.innerWidth > 0) ? window.innerWidth : screen.width; - if (screenWidth > 700) { + if (screenWidth > 700 && ARSnova.app.userRole === ARSnova.app.USER_ROLE_SPEAKER) { this.zoomButton.show(); this.initializeZoomComponents(); } diff --git a/src/main/webapp/app/view/feedbackQuestions/DetailsPanel.js b/src/main/webapp/app/view/feedbackQuestions/DetailsPanel.js index 21d8164a0d0f52d2e62fca9fc7a0aec0c13092c2..193beff199d409b18ea05f355191a1515fd367cf 100644 --- a/src/main/webapp/app/view/feedbackQuestions/DetailsPanel.js +++ b/src/main/webapp/app/view/feedbackQuestions/DetailsPanel.js @@ -138,7 +138,6 @@ Ext.define('ARSnova.view.feedbackQuestions.DetailsPanel', { scope: this, handler: function () { var panel = ARSnova.app.mainTabPanel.tabPanel.feedbackQuestionsPanel; - ARSnova.app.questionModel.deleteInterposed(this.questionObj, { success: function () { me.questionObj.destroy(); diff --git a/src/main/webapp/app/view/feedbackQuestions/QuestionsPanel.js b/src/main/webapp/app/view/feedbackQuestions/QuestionsPanel.js index 57c31384e7c0e6c2a3ac5c9d0fd761b2009bedd4..e51f200cde63185938678d7c2883cddc2b522ad6 100644 --- a/src/main/webapp/app/view/feedbackQuestions/QuestionsPanel.js +++ b/src/main/webapp/app/view/feedbackQuestions/QuestionsPanel.js @@ -67,7 +67,7 @@ Ext.define('ARSnova.view.feedbackQuestions.QuestionsPanel', { ARSnova.app.mainTabPanel.tabPanel.feedbackQuestionsPanel.questionsPanel.updateTime(); }, interval: 1000 // 1 second - }, + } }, toolbar: null,