Commit bf8936a6 authored by Thomas Flemmer's avatar Thomas Flemmer

add newMotdPanel

parent d083c3b3
......@@ -97,6 +97,7 @@
MESSAGEOFTHEDAY_BUTTON: "MotD_DE",
CREATE_NEW_MOTD: "Neue Message anlegen",
MY_MESSAGES: "Alle Nachrichten:",
NEW_MOTD: "Neue Message",
/* LOAD MASK */
LOAD_MASK: "Lade Daten...",
......@@ -670,6 +671,7 @@
MESSAGEOFTHEDAY_BUTTON: "MotD_EN",
CREATE_NEW_MOTD: "Create New Message",
MY_MESSAGES: "All Messages:",
NEW_MOTD: "New Message",
/* LOAD MASK */
LOAD_MASK: "Loading...",
......
......@@ -44,7 +44,6 @@ Ext.define('ARSnova.view.home.motdPanel', {
initialize: function () {
this.callParent(arguments);
var me = this;
var config = ARSnova.app.globalConfig;
var screenWidth = (window.innerWidth > 0) ? window.innerWidth : screen.width;
......@@ -134,15 +133,17 @@ Ext.define('ARSnova.view.home.motdPanel', {
items: [
Ext.create('ARSnova.view.MatrixButton', {
id: 'new-session-button',
id: 'new-motd-button',
text: Messages.CREATE_NEW_MOTD,
buttonConfig: 'icon',
cls: 'actionButton',
imageCls: 'icon-info thm-green',
scope: this,
handler: function () {
this.newMotdPanel = Ext.create('ARSnova.view.home.NewMotdPanel');
var hTP = ARSnova.app.mainTabPanel.tabPanel.homeTabPanel;
hTP.animateActiveItem(hTP.newSessionPanel, 'slide');
hTP.animateActiveItem(hTP.NewMotdPanel, 'slide');
  • Typo: hTP.NewMotdPanel muss hTP.newMotdPanel sein. JavaScript ist case sensitive.

Please register or sign in to reply
console.log("kommt");
}
})
]
......
/*
* This file is part of ARSnova Mobile.
* Copyright (C) 2011-2012 Christian Thomas Weber
* Copyright (C) 2012-2015 The ARSnova Team
*
* ARSnova Mobile is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ARSnova Mobile is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ARSnova Mobile. If not, see <http://www.gnu.org/licenses/>.
*/
Ext.define('ARSnova.view.home.NewMotdPanel', {
extend: 'Ext.Panel',
});
......@@ -25,6 +25,7 @@ Ext.define('ARSnova.view.home.TabPanel', {
'ARSnova.view.home.MySessionsPanel',
'ARSnova.view.home.NewSessionPanel',
'ARSnova.view.home.motdPanel',
'ARSnova.view.home.NewMotdPanel'
],
config: {
......@@ -41,12 +42,14 @@ Ext.define('ARSnova.view.home.TabPanel', {
this.mySessionsPanel = Ext.create('ARSnova.view.home.MySessionsPanel');
this.newSessionPanel = Ext.create('ARSnova.view.home.NewSessionPanel');
this.motdPanel = Ext.create('ARSnova.view.home.motdPanel');
this.newMotdPanel = Ext.create('ARSnova.view.home.NewMotdPanel');
this.add([
this.homePanel,
this.mySessionsPanel,
this.newSessionPanel,
this.motdPanel,
this.newMotdPanel
]);
}
});
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