Commit fe308947 authored by Andreas Gärtner's avatar Andreas Gärtner

Task #16020: Hide scrolling elements for student role.

parent 5b31f18d
......@@ -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();
}
......
......@@ -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();
}
......
......@@ -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();
......
......@@ -67,7 +67,7 @@ Ext.define('ARSnova.view.feedbackQuestions.QuestionsPanel', {
ARSnova.app.mainTabPanel.tabPanel.feedbackQuestionsPanel.questionsPanel.updateTime();
},
interval: 1000 // 1 second
},
}
},
toolbar: null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment