diff --git a/public/js/components/Cis/Menu/Entry.js b/public/js/components/Cis/Menu/Entry.js index 062c63e89..8d8a7770d 100755 --- a/public/js/components/Cis/Menu/Entry.js +++ b/public/js/components/Cis/Menu/Entry.js @@ -20,13 +20,9 @@ export default { highestMatchingUrlCount: function(newValue) { // if this entry has the most matching url parts then it should be active - if (newValue == this.urlCount) + if (this.activeContent == null && newValue == this.urlCount) { - this.entry.menu_open = true; - } - else - { - this.entry.menu_open = false; + this.$emit("activeEntry", this.entry.content_id); } }, activeContent: function(newValue){ @@ -55,7 +51,8 @@ export default { // only invokes .hide if this.collapse is not null this.collapse && this.collapse.hide(); } - // debugging helpers - console.log(this.entry.titel,newValue?"open":"close") + // debugging helpers - console.log(this.entry.titel, newValue ? "open" : "close") + }, }, @@ -230,7 +227,7 @@ export default {
db_query("SELECT * FROM campus.tbl_content WHERE beschreibun 'redirect','etw',NOW(),null,null,null,TRUE,FALSE,'MEIN_STUDIUM' ); + -- VPN_STUDIERENDE + + INSERT INTO campus.tbl_content + (template_kurzbz, oe_kurzbz, insertamum, insertvon, updateamum, updatevon, aktiv, menu_open, beschreibung) + VALUES + ( + 'redirect','etw',NOW(),null,null,null,TRUE,FALSE,'VPN_STUDIERENDE' + ); + -- PROFIL INSERT INTO campus.tbl_content @@ -136,6 +145,20 @@ if ($result = @$db->db_query("SELECT * FROM campus.tbl_content WHERE beschreibun null,null,null,null,NOW(),null,'Mein Studium',null ); + -- VPN_STUDIERENDE + + INSERT INTO campus.tbl_contentsprache + (sprache, content_id, version, sichtbar, content, reviewvon, reviewamum, updateamum, updatevon, insertamum, insertvon, titel, gesperrt_uid) + VALUES + ( + 'German', + -- queries the content_id for the VPN_STUDIERENDE + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'VPN_STUDIERENDE'), + 1,TRUE, + '