diff --git a/module/product/js/browse.js b/module/product/js/browse.js index c37552d985..7d9cc6bbe5 100644 --- a/module/product/js/browse.js +++ b/module/product/js/browse.js @@ -25,5 +25,5 @@ function changeAction(formName, actionName, actionLink) $(function() { if(browseType == 'bysearch') ajaxGetSearchForm(); - $(function(){$('.iframe').colorbox({width:900, height:500, iframe:true, transition:'none', onCleanup:function(){parent.location.href=parent.location.href;}});}) + loadColorbox('iframe', 'storyList'); }) diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index 3e7bf3295d..31e20b4d9e 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -10,6 +10,7 @@ * @link http://www.zentao.net */ ?> + @@ -53,84 +54,7 @@ var browseType = '';
| idAB);?> | -priAB);?> | -story->title);?> | -story->planAB);?> | -story->source);?> | -openedByAB);?> | -assignedToAB);?> | -story->estimateAB);?> | -statusAB);?> | -story->stageAB);?> | -actions;?> | -
|---|---|---|---|---|---|---|---|---|---|---|
| - - id)); else printf('%03d', $story->id);?> - | -story->priList[$story->pri];?>'>story->priList[$story->pri]?> | -planTitle;?> | -story->sourceList[$story->source];?> | -openedBy];?> | -assignedTo];?> | -estimate;?> | -story->statusList[$story->status];?> | -story->stageList[$story->stage];?> | -- id}"; - common::printIcon('story', 'change', $vars, $story, 'list'); - common::printIcon('story', 'review', $vars, $story, 'list'); - common::printIcon('story', 'close', $vars, $story, 'list', '', '', 'iframe', true); - common::printIcon('story', 'edit', $vars, $story, 'list'); - common::printIcon('story', 'createCase', "productID=$story->product&module=0&from=¶m=0&$vars", $story, 'list', 'createCase'); - ?> - | -|
|
-
- createLink('story', 'batchEdit', "from=productBrowse&productID=$productID&projectID=0&orderBy=$orderBy");
- echo html::commonButton($lang->edit, "onclick=\"changeAction('productStoryForm', 'batchEdit', '$actionLink')\"");
- }
- if(common::hasPriv('story', 'batchClose') and strtolower($browseType) != 'closedbyme' and strtolower($browseType) != 'closedstory')
- {
- $actionLink = $this->createLink('story', 'batchClose', "from=productBrowse&productID=$productID&projectID=0&orderBy=$orderBy");
- echo html::commonButton($lang->close, "onclick=\"changeAction('productStoryForm', 'batchClose', '$actionLink')\"");
- }
- }
- echo $summary;
- ?>
-
- show();?>
- |
- ||||||||||
| idAB);?> | +priAB);?> | +story->title);?> | +story->planAB);?> | +story->source);?> | +openedByAB);?> | +assignedToAB);?> | +story->estimateAB);?> | +statusAB);?> | +story->stageAB);?> | +actions;?> | +
|---|---|---|---|---|---|---|---|---|---|---|
| + + id)); else printf('%03d', $story->id);?> + | +story->priList[$story->pri];?>'>story->priList[$story->pri]?> | +planTitle;?> | +story->sourceList[$story->source];?> | +openedBy];?> | +assignedTo];?> | +estimate;?> | +story->statusList[$story->status];?> | +story->stageList[$story->stage];?> | ++ id}"; + common::printIcon('story', 'change', $vars, $story, 'list'); + common::printIcon('story', 'review', $vars, $story, 'list'); + common::printIcon('story', 'close', $vars, $story, 'list', '', '', 'iframe', true); + common::printIcon('story', 'edit', $vars, $story, 'list'); + common::printIcon('story', 'createCase', "productID=$story->product&module=0&from=¶m=0&$vars", $story, 'list', 'createCase'); + ?> + | +|
|
+
+ createLink('story', 'batchEdit', "from=productBrowse&productID=$productID&projectID=0&orderBy=$orderBy");
+ echo html::commonButton($lang->edit, "onclick=\"changeAction('productStoryForm', 'batchEdit', '$actionLink')\"");
+ }
+ if(common::hasPriv('story', 'batchClose') and strtolower($browseType) != 'closedbyme' and strtolower($browseType) != 'closedstory')
+ {
+ $actionLink = $this->createLink('story', 'batchClose', "from=productBrowse&productID=$productID&projectID=0&orderBy=$orderBy");
+ echo html::commonButton($lang->close, "onclick=\"changeAction('productStoryForm', 'batchClose', '$actionLink')\"");
+ }
+ }
+ echo $summary;
+ ?>
+
+ show();?>
+ |
+ ||||||||||