* adjust for task #2295.
This commit is contained in:
@@ -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>");
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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';?>
|
||||
|
||||
Reference in New Issue
Block a user