GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 12. April, ab 19:00 Uhr nicht zur Verfügung.

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', { ...@@ -318,7 +318,7 @@ Ext.define('ARSnova.view.FreetextAnswerPanel', {
var screenWidth = (window.innerWidth > 0) ? window.innerWidth : screen.width; var screenWidth = (window.innerWidth > 0) ? window.innerWidth : screen.width;
ARSnova.app.innerScrollPanel = this; ARSnova.app.innerScrollPanel = this;
if (screenWidth > 700) { if (screenWidth > 700 && ARSnova.app.userRole === ARSnova.app.USER_ROLE_SPEAKER) {
this.zoomButton.show(); this.zoomButton.show();
this.initializeZoomComponents(); this.initializeZoomComponents();
} }
......
...@@ -234,7 +234,7 @@ Ext.define('ARSnova.view.FreetextDetailAnswer', { ...@@ -234,7 +234,7 @@ Ext.define('ARSnova.view.FreetextDetailAnswer', {
ARSnova.app.innerScrollPanel = this; ARSnova.app.innerScrollPanel = this;
var screenWidth = (window.innerWidth > 0) ? window.innerWidth : screen.width; 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.zoomButton.show();
this.initializeZoomComponents(); this.initializeZoomComponents();
} }
......
...@@ -138,7 +138,6 @@ Ext.define('ARSnova.view.feedbackQuestions.DetailsPanel', { ...@@ -138,7 +138,6 @@ Ext.define('ARSnova.view.feedbackQuestions.DetailsPanel', {
scope: this, scope: this,
handler: function () { handler: function () {
var panel = ARSnova.app.mainTabPanel.tabPanel.feedbackQuestionsPanel; var panel = ARSnova.app.mainTabPanel.tabPanel.feedbackQuestionsPanel;
ARSnova.app.questionModel.deleteInterposed(this.questionObj, { ARSnova.app.questionModel.deleteInterposed(this.questionObj, {
success: function () { success: function () {
me.questionObj.destroy(); me.questionObj.destroy();
......
...@@ -67,7 +67,7 @@ Ext.define('ARSnova.view.feedbackQuestions.QuestionsPanel', { ...@@ -67,7 +67,7 @@ Ext.define('ARSnova.view.feedbackQuestions.QuestionsPanel', {
ARSnova.app.mainTabPanel.tabPanel.feedbackQuestionsPanel.questionsPanel.updateTime(); ARSnova.app.mainTabPanel.tabPanel.feedbackQuestionsPanel.questionsPanel.updateTime();
}, },
interval: 1000 // 1 second interval: 1000 // 1 second
}, }
}, },
toolbar: null, 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