Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 6030b6c

Browse files
author
Charles Ma
committed
ENH: refs #291 Removed index controller test (now we redirect instead of forward)
1 parent 14b7d77 commit 6030b6c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

core/AppController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ public function preDispatch()
212212
"needToLog" => false,
213213
"currentUri" => $this->getRequest()->REQUEST_URI,
214214
"lang" => Zend_Registry::get('configGlobal')->application->lang,
215+
"demomode" => $this->isDemoMode(),
215216
"dynamichelp" => $this->isDynamicHelp(),
216217
"dynamichelpAnimate" => $this->isDynamicHelp() && isset($_GET['first']),
217218
"startingGuide" => $this->isStartingGuide(),

core/public/js/layout/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,11 @@ function sliceFileName(name,nchar)
553553
value.qtip('hide');
554554
value.qtip('disable');
555555
});
556+
557+
if(json.global.demomode)
558+
{
559+
$('.loginLink').qtip('enable');
560+
}
556561

557562
if(!$('#dialogStartingGuide').is(':hidden'))
558563
{

core/tests/controllers/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
add_midas_test( IndexController IndexControllerTest.php )
21
add_midas_test( FeedController FeedControllerTest.php )
32
add_midas_test( UserController UserControllerTest.php )
43
add_midas_test( UploadDownloadController UploadDownloadControllerTest.php )

0 commit comments

Comments
 (0)