From b1af6eac76cda1b9be6b98688b9f751e7a1a9cc8 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 4 Nov 2014 01:18:40 +0000 Subject: [PATCH] * fix a bug #646. --- lib/front/front.class.php | 2 +- module/my/view/story.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 44596b40f6..04fb888f6a 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -819,7 +819,7 @@ EOT; * @access public * @return void */ - static public function closeModal($window = 'self', $location = '') + static public function closeModal($window = 'self', $location = 'this') { $js = self::start(); $js .= "if($window.location.href == self.location.href){ $window.window.close();}"; diff --git a/module/my/view/story.html.php b/module/my/view/story.html.php index 625eed7636..c1687a9e04 100644 --- a/module/my/view/story.html.php +++ b/module/my/view/story.html.php @@ -64,7 +64,7 @@ id", $story, 'list', 'random'); common::printIcon('story', 'review', "storyID=$story->id", $story, 'list', 'search'); - common::printIcon('story', 'close', "storyID=$story->id", $story, 'list', 'off', 'text-danger'); + common::printIcon('story', 'close', "storyID=$story->id", $story, 'list', 'off', '', 'text-danger'); common::printIcon('story', 'edit', "storyID=$story->id", $story, 'list', 'pencil'); common::printIcon('story', 'createCase', "productID=$story->product&moduleID=0&from=¶m=0&storyID=$story->id", '', 'list', 'sitemap'); ?>