Skip to content

Commit

Permalink
Dev: add some class for upload question type
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Apr 13, 2015
1 parent 85d72f3 commit 0b7df6b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion application/controllers/UploaderController.php
Expand Up @@ -339,7 +339,7 @@ function run($actionID)
$maxfiles = (int)Yii::app()->request->getParam('maxfiles');
$qidattributes=getQuestionAttributeValues($qid);
$qidattributes['max_filesize']=floor(min($qidattributes['max_filesize']*1024,getMaximumFileUploadSize())/1024);
$body = '</head><body>
$body = '</head><body class="uploader">
<div id="notice"></div>
<input type="hidden" id="ia" value="'.$fn.'" />
<input type="hidden" id="'.$fn.'_minfiles" value="'.$minfiles.'" />
Expand Down
2 changes: 2 additions & 0 deletions scripts/modaldialog.js
Expand Up @@ -30,6 +30,7 @@ function openUploadModalDialog(){
autoResize: false,
draggable: true,
closeOnEscape: false,
dialogClass: "dialog-upload",
beforeClose: function() {
var pass;
if(document.getElementById('uploader').contentDocument) {
Expand Down Expand Up @@ -63,6 +64,7 @@ $(window).resize(function() {
/* Reset the position of the dialog (recenter) */
function resetUploaderPosition(){
$( "#uploader" ).dialog( "option", "position", $( "#uploader" ).dialog( "option", "position" ) );

}
/* Set the with of upload madal and uploader frame according to windows width */
function setWidthUploader(){
Expand Down
17 changes: 9 additions & 8 deletions styles-public/uploader.css
@@ -1,13 +1,14 @@
body {font-family: verdana, arial, helvetica, sans-serif;font-size: 12px;color: black; direction: ltr;}
h1 {color: #C7D92C; font-size: 18px; font-weight: 400;}
a {color: white;}
a:hover, a.hover {color: #C7D92C;}
ul { list-style: none; }
#dialog-confirm { padding: 0 20px; float: left; width: 750px; }
#dialog-confirm { padding: 0 20px; float: left; width: 750px; }/* Used .*/

/* Using display:table and hack for IE6/7 */
.files-list{display:table;table-layout:fixed;width:100%;list-style:none}
.files-list{display:table;table-layout:fixed;width:100%;list-style:none;padding:0;margin:0;}
.file-element{display:table-row;width:100%;padding:0.5em 0;}
.file-info fieldset{
border:0 none;
padding:0;
margin:0;
}

.file-preview,.file-info,.file-tool{
display:table-cell;vertical-align:middle;
* float:left
Expand Down Expand Up @@ -39,7 +40,7 @@ text-align:left;
clear:left;
display:block;
width:12em;
padding:0 1em;
padding:0 0.5em;
line-height:1.5;
text-align:right;
}
Expand Down

0 comments on commit 0b7df6b

Please sign in to comment.