Commit e3d2970afa4b81c061257a68426f6d049d25040e
1 parent
acaee818
Redirect from AJAX dashboard if user on IE
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6043 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
12 additions
and
5 deletions
lib/templating/kt3template.inc.php
| ... | ... | @@ -128,8 +128,8 @@ class KTPage { |
| 128 | 128 | function initMenu() { |
| 129 | 129 | // FIXME: we lost the getDefaultAction stuff - do we care? |
| 130 | 130 | // note that key == action. this is _important_, since we crossmatch the breadcrumbs against this for "active" |
| 131 | - $this->menu = array("dashboard" => $this->_actionHelper(array("name" => _kt("Dashboard"), "action" => "ajaxdashboard", "active" => 0)), | |
| 132 | - "olddashboard" => $this->_actionHelper(array("name" => _kt("Old Dashboard"), "action" => "dashboard", "active" => 0)), | |
| 131 | + $this->menu = array("ajaxdashboard" => $this->_actionHelper(array("name" => _kt("Dashboard"), "action" => "ajaxdashboard", "active" => 0)), | |
| 132 | + "dashboard" => $this->_actionHelper(array("name" => _kt("Old Dashboard"), "action" => "dashboard", "active" => 0)), | |
| 133 | 133 | "browse" => $this->_actionHelper(array("name" => _kt("Browse Documents"), "action" => "browse", "active" => 0)), |
| 134 | 134 | "administration" => $this->_actionHelper(array("name" => _kt("DMS Administration"), "action" => "administration", "active" => 0)),); |
| 135 | 135 | } | ... | ... |
resources/js/dashboard.js
| ... | ... | @@ -77,7 +77,7 @@ KTDashboard.prototype = { |
| 77 | 77 | |
| 78 | 78 | this.addButton = $('add_dashlet'); |
| 79 | 79 | connect(this.addButton, 'onclick', this, 'onclickAdd'); |
| 80 | - hideElement(this.addButton); | |
| 80 | + //hideElement(this.addButton); | |
| 81 | 81 | |
| 82 | 82 | // alert(keys(this.dashlets)); |
| 83 | 83 | // alert(values(this.dashlets)); |
| ... | ... | @@ -159,8 +159,15 @@ KTDashboard.prototype = { |
| 159 | 159 | |
| 160 | 160 | addLoadEvent( |
| 161 | 161 | function() { |
| 162 | - var dashboard = new KTDashboard(); | |
| 163 | - dashboard.initialize($('content')); | |
| 162 | + var browser = navigator.appName; | |
| 163 | + if(browser == 'Microsoft Internet Explorer') { | |
| 164 | + alert("For this technology preview, the draggable dashboard does not work in Internet Explorer. Please try with Firefox."); | |
| 165 | + var location = window.location.href.toString().replace(/2/gi, ''); | |
| 166 | + window.location = location; | |
| 167 | + } else { | |
| 168 | + var dashboard = new KTDashboard(); | |
| 169 | + dashboard.initialize($('content')); | |
| 170 | + } | |
| 164 | 171 | }); |
| 165 | 172 | |
| 166 | 173 | |
| 167 | 174 | \ No newline at end of file | ... | ... |