* adjust for task #2295.

This commit is contained in:
wangyidong
2015-09-17 14:31:35 +08:00
parent eb0e1c2f47
commit 9ab9c376f7
2 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
$(function()
{
if(canCreate)
{
link = createLink('story', 'create', 'productID=' + productID + '&moduleID=' + moduleID);
$('#modulemenu ul.nav li.right:first').before("<li class='right'><a href='" + link + "'><i class='icon-story-create icon-plus'></i> " + createStory + "</a></li>");
}
});

View File

@@ -36,11 +36,6 @@
$browseLink = $app->session->storyList != false ? $app->session->storyList : $this->createLink('product', 'browse', "productID=$story->product&moduleID=$story->module");
$actionLinks = '';
/* Add story convenient. */
echo "<div class='btn-group'>";
common::printIcon('story', 'create', "productID=$story->product&moduleID=$story->module", '', 'button', 'plus');
echo '</div>';
if(!$story->deleted)
{
ob_start();
@@ -301,5 +296,11 @@
</div>
</div>
</div>
<?php
js::set('canCreate', common::hasPriv('story', 'story'));
js::set('createStory', $lang->story->create);
js::set('productID', $story->product);
js::set('moduleID', $story->module);
?>
<?php include '../../common/view/syntaxhighlighter.html.php';?>
<?php include '../../common/view/footer.html.php';?>