TASK #515::重构checkall
Start Done Close Cancel Activate Assign Edit Delete Back
Desc

1. 确认下有用到全选功能的页面列表。

2. 综合这些页面全选功能的特点,抽象一个方法。

3. 将这些页面的全选代码换掉。

 

有全选的页面有:

task/bug/story报表统计:

  ./www/js/my.full.js:function checkAll()

  ./module/story/view/report.html.php:        <input type='button' value='<?php echo $lang->story->report->selectAll;?>'     onclick='checkAll()' />

  ./module/bug/view/report.html.php:        <input type='button' value='<?php echo $lang->bug->report->selectAll;?>'     onclick='checkAll()' />

  ./module/task/view/report.html.php:          <input type='button' value='<?php echo $lang->task->report->selectAll;?>'     onclick='checkAll()' />

 

我的地盘->我的任务:

  ./module/my/js/task.js:function checkall(checker)

  ./module/my/view/task.html.php:          <input type='checkbox' onclick='checkall(this);'><?php echo $lang->selectAll;?>

 

项目视图->关联需求:

  ./module/project/js/linkstory.js:function checkall(checker)

  ./module/project/view/linkstory.html.php:    <tfoot><tr><td colspan='8' class='f-14px'><input type='checkbox' onclick='checkall(this);'><?php print($storyCount? ($lang->selectAll . html::submitButton()) : $lang->project->whyNoStories);?></td></tr></tfoot>

 

组织视图->权限分组->成员维护/权限维护:

  ./module/group/js/managemember.js:function checkall(checker, id)

  ./module/group/view/managemember.html.php:      <th class='rowhead'><?php echo $lang->group->inside;?><input type='checkbox' onclick='checkall(this, "group");'></th>

  ./module/group/view/managemember.html.php:      <th class='rowhead'><?php echo $lang->group->outside;?><input type='checkbox' onclick='checkall(this, "other");'></th>

  .

  ./module/group/js/managepriv.js:function checkall(checker)

  ./module/group/view/privbygroup.html.php:      <th class='a-right'><?php echo $this->lang->$moduleName->common;?> <input type='checkbox' onclick='check(this, "<?php echo $moduleName;?>")'><

  ./module/group/view/privbygroup.html.php:      <th class='rowhead'><?php echo $lang->group->checkall;?><input type='checkbox' onclick='checkall(this);'></th>

 

  /* $lang->group->checkall应该用$lang->selectAll代替。 */

  /module/group/lang/zh-tw.php:$lang->group->checkall = '鍏ㄩ伕';

  ./module/group/lang/en.php:$lang->group->checkall = 'Select all';

  ./module/group/lang/zh-cn.php:$lang->group->checkall = '鍏ㄩ€?;

 

测试视图->测试任务->关联:

  ./module/testtask/js/linkcase.js:function checkall(checker)

  ./module/testtask/view/linkcase.html.php:    <td colspan='7' class='a-center'><input type='checkbox' onclick='checkall(this);'><?php echo $lang->selectAll; echo html::submitButton();?></td>

 

测试视图->测试任务->用例

  ./module/testtask/js/cases.js:function checkall(checker)

  ./module/testtask/view/cases.html.php:          <td><nobr><?php echo "<input type='checkbox' onclick='checkall(this);'> " . $lang->selectAll;?></nobr></td>

 

File
History[Reverse] [Toggle Show]
  1. 2011-09-03 14:36:29, opened by 王春生.
  2. 2011-09-05 11:10:47, edited by 王春生.
  3. 2011-09-20 11:07:19, canceled by 王春生.
    暂时取消。
  4. 2011-09-30 11:10:05, moved by 石洋洋, previouse is "18".
  5. 2011-10-24 08:26:02, canceled by 王春生.
    暂时取消。
  6. 2011-11-28 16:42:36, moved by 王春生, previouse is "19".
  7. 2011-11-28 16:43:18, canceled by 王春生.
  8. 2012-01-11 16:00:56, closed by 王春生.
  9. 2012-02-03 16:29:57, activated by 王春生.
  10. 2012-02-03 16:30:07, moved by 王春生, previouse is "20".
  11. 2012-02-04 10:43:09, 王春生 assigned task to 王春生.
  12. 2012-02-04 10:43:43, edited by 王春生.
  13. 2012-02-21 10:13:25, canceled by 王春生.
    暂时取消。
  14. 2012-02-24 08:48:44, moved by 石洋洋, previouse is "22".
  15. 2012-03-01 19:37:27, canceled by 王春生.
  16. 2012-04-26 20:36:18, moved by 王春生, previouse is "23".
  17. 2012-04-26 20:37:06, moved by 王春生, previouse is "2".
  18. 2012-04-26 23:29:00, edited by 阿智.
  19. 2012-04-29 14:39:32, edited by 阿智.
  20. 2012-04-29 15:29:17, edited by 阿智.
  21. 2012-05-01 10:51:16, finished by 阿智.
  22. 2012-05-10 08:02:57, closed by 王春生.
Start Done Close Cancel Activate Assign Edit Delete Back
Basic info
Project 禅道项目管理第二十七期
Story 重构checkall
Assigned To Closed at 2012-05-10 08:02:57
Type Devel
Status Closed
Pri 3
Mailto
Effort
Start date
Deadline 0000-00-00
Estimate 8Hour
Consumed 10Hour
Left 0Hour
Lifetime
Opened By 王春生 at 2011-09-03 14:36:29
Finished By 阿智 at 2012-05-01 10:51:16
Canceled By
Closed By 王春生 at 2012-05-10 08:02:57
Closed Reason Done
Last Edited 王春生 at 2012-05-10 08:02:57