From e0378274e91aaed2c8bdd8166cc4150c9564e680 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 2 Mar 2012 12:14:20 +0000 Subject: [PATCH] * adjust the file form width. --- module/file/view/buildform.html.php | 7 ++++--- module/story/view/create.html.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/module/file/view/buildform.html.php b/module/file/view/buildform.html.php index 0784b7fd5e..e4666dfb75 100644 --- a/module/file/view/buildform.html.php +++ b/module/file/view/buildform.html.php @@ -1,6 +1,6 @@
-file->common . ($i + 1) . " "?> +file->common . ($i + 1) . " "?>
@@ -9,8 +9,9 @@ function setFileFormWidth(percent) { totalWidth = Math.round($('#fileform').parent().width() * percent); - titleWidth = totalWidth - $('#file0').width() - $('#label0').width(); - if(!$.browser.mozilla) titleWidth -= 10; + titleWidth = totalWidth - $('#file0').width() - $('#label0').width() - $('.icon').width(); + if($.browser.mozilla) titleWidth -= 8; + if(!$.browser.mozilla) titleWidth -= 12; $('#fileform .text-3').css('width', titleWidth + 'px'); }; $(function(){setFileFormWidth()}); diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index 4588f55cc9..a1ec22f992 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -89,7 +89,7 @@ - +
story->legendAttatch;?>fetch('file', 'buildform', "fileConte=2&precent=0.94");?>fetch('file', 'buildform', "fileConte=2&precent=0.99");?>