From e53bbdf5028ecb7f768d42ef82efe39c47f00b59 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 28 Aug 2015 13:14:02 +0800 Subject: [PATCH] * finish task #2306. --- module/bug/view/create.html.php | 2 +- module/bug/view/edit.html.php | 2 +- module/bug/view/resolve.html.php | 2 +- module/doc/view/create.html.php | 2 +- module/doc/view/edit.html.php | 2 +- module/file/control.php | 2 +- module/story/view/change.html.php | 2 +- module/testcase/view/edit.html.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index c4fa1c0279..2dec3a00fa 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -141,7 +141,7 @@ js::set('refresh', $lang->refresh); bug->files;?> - fetch('file', 'buildform', 'fileCount=2&percent=0.85');?> + fetch('file', 'buildform', 'fileCount=1&percent=0.85');?> diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index d8ff46c3db..63e8748549 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -52,7 +52,7 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild);
bug->legendAttatch;?> -
fetch('file', 'buildform', 'filecount=2');?>
+
fetch('file', 'buildform');?>
bug->files;?> - fetch('file', 'buildform', 'fileCount=2&percent=0.85');?> + fetch('file', 'buildform', 'fileCount=1&percent=0.85');?> comment;?> diff --git a/module/doc/view/create.html.php b/module/doc/view/create.html.php index 014139a46d..9a537ae830 100644 --- a/module/doc/view/create.html.php +++ b/module/doc/view/create.html.php @@ -67,7 +67,7 @@ doc->files;?> - fetch('file', 'buildform', 'fileCount=2');?> + fetch('file', 'buildform');?> diff --git a/module/doc/view/edit.html.php b/module/doc/view/edit.html.php index 615dd9f1a7..dac4f7aa29 100644 --- a/module/doc/view/edit.html.php +++ b/module/doc/view/edit.html.php @@ -75,7 +75,7 @@ $(document).ready(function() doc->files;?> - fetch('file', 'buildform', 'fileCount=2');?> + fetch('file', 'buildform');?> diff --git a/module/file/control.php b/module/file/control.php index ccd28a5c27..66cf00c54d 100644 --- a/module/file/control.php +++ b/module/file/control.php @@ -19,7 +19,7 @@ class file extends control * @access public * @return void */ - public function buildForm($fileCount = 2, $percent = 0.9) + public function buildForm($fileCount = 1, $percent = 0.9) { if(!file_exists($this->file->savePath)) { diff --git a/module/story/view/change.html.php b/module/story/view/change.html.php index c4b0ec674c..94e24ac3a1 100644 --- a/module/story/view/change.html.php +++ b/module/story/view/change.html.php @@ -50,7 +50,7 @@ attatch;?> - fetch('file', 'buildform', 'filecount=2');?> + fetch('file', 'buildform');?> story->checkAffection;?> diff --git a/module/testcase/view/edit.html.php b/module/testcase/view/edit.html.php index 155a45d109..0e296925f4 100644 --- a/module/testcase/view/edit.html.php +++ b/module/testcase/view/edit.html.php @@ -73,7 +73,7 @@
testcase->legendAttatch;?> -
fetch('file', 'buildform', 'filecount=2');?>
+
fetch('file', 'buildform');?>