diff --git a/lib/templating/kt3template.inc.php b/lib/templating/kt3template.inc.php index 79afadf..7c31654 100644 --- a/lib/templating/kt3template.inc.php +++ b/lib/templating/kt3template.inc.php @@ -128,8 +128,8 @@ class KTPage { function initMenu() { // FIXME: we lost the getDefaultAction stuff - do we care? // note that key == action. this is _important_, since we crossmatch the breadcrumbs against this for "active" - $this->menu = array("dashboard" => $this->_actionHelper(array("name" => _kt("Dashboard"), "action" => "ajaxdashboard", "active" => 0)), - "olddashboard" => $this->_actionHelper(array("name" => _kt("Old Dashboard"), "action" => "dashboard", "active" => 0)), + $this->menu = array("ajaxdashboard" => $this->_actionHelper(array("name" => _kt("Dashboard"), "action" => "ajaxdashboard", "active" => 0)), + "dashboard" => $this->_actionHelper(array("name" => _kt("Old Dashboard"), "action" => "dashboard", "active" => 0)), "browse" => $this->_actionHelper(array("name" => _kt("Browse Documents"), "action" => "browse", "active" => 0)), "administration" => $this->_actionHelper(array("name" => _kt("DMS Administration"), "action" => "administration", "active" => 0)),); } diff --git a/resources/js/dashboard.js b/resources/js/dashboard.js index acf11f6..380f2f9 100644 --- a/resources/js/dashboard.js +++ b/resources/js/dashboard.js @@ -77,7 +77,7 @@ KTDashboard.prototype = { this.addButton = $('add_dashlet'); connect(this.addButton, 'onclick', this, 'onclickAdd'); - hideElement(this.addButton); + //hideElement(this.addButton); // alert(keys(this.dashlets)); // alert(values(this.dashlets)); @@ -159,8 +159,15 @@ KTDashboard.prototype = { addLoadEvent( function() { - var dashboard = new KTDashboard(); - dashboard.initialize($('content')); + var browser = navigator.appName; + if(browser == 'Microsoft Internet Explorer') { + alert("For this technology preview, the draggable dashboard does not work in Internet Explorer. Please try with Firefox."); + var location = window.location.href.toString().replace(/2/gi, ''); + window.location = location; + } else { + var dashboard = new KTDashboard(); + dashboard.initialize($('content')); + } }); \ No newline at end of file