From d2967f0e162e7f76581f9f356f5b9c72057e2f95 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Fri, 7 Apr 2017 16:52:20 +0800 Subject: [PATCH] * adjust for mobile web. --- module/custom/config.php | 2 +- module/story/control.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/module/custom/config.php b/module/custom/config.php index d0b29b2941..461857cd20 100644 --- a/module/custom/config.php +++ b/module/custom/config.php @@ -11,5 +11,5 @@ $config->custom->canAdd['block'] = ''; $config->custom->moblieHidden['main'] = array('repo'); $config->custom->moblieHidden['product'] = array('branch', 'module', 'create'); -$config->custom->moblieHidden['project'] = array('create'); +$config->custom->moblieHidden['project'] = array('create', 'effort', 'product'); $config->custom->moblieHidden['my'] = array('effort', 'changePassword', 'manageContacts'); diff --git a/module/story/control.php b/module/story/control.php index fd857f28f0..778c907b1d 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1113,6 +1113,10 @@ class story extends control { die(json_encode($stories)); } + elseif($this->app->getViewType() == 'mhtml') + { + die(html::select('story', empty($stories) ? array('' => '') : $stories, $storyID, 'onchange=setStoryRelated()')); + } else { $storyName = $number === '' ? 'story' : "story[$number]";