[svn r17876] Minor - UI changes FS#2970

skala
Julio Montoya 16 years ago
parent 9bddccb11b
commit 06a823df97
  1. 22
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajaxfilemanager.php
  2. 16
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/jscripts/ajaxfilemanager_c.js
  3. 4
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/langs/en.php
  4. 3
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/langs/es.php

@ -522,13 +522,31 @@ $(document).ready(
<table class="tableForm" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th colspan="2"><?php echo FILE_FORM_TITLE; ?><a class="action" href="#" title="<?php echo FILE_LBL_MORE; ?>" onclick="return addMoreFile();"><span class="addMore">&nbsp;</span></a></th>
<th colspan="2">
<?php echo FILE_FORM_TITLE; ?>
</th>
</tr>
<tr>
<th colspan="2" align="left">
<label>
<a class="action" href="#" title="<?php echo FILE_LBL_MORE; ?>" onclick="return addMoreFile();">
<label><?php echo FILE_LBL_MORE; ?></label><span class="addMore">&nbsp;</span></a>
</label>
</th>
</tr>
</thead>
<tbody id="fileUploadBody">
<tr style="display:none">
<th><label><?php echo FILE_LABEL_SELECT; ?></label></th>
<td><input type="file" class="input" name="file" /> <input type="button" class="button" value="<?php echo FILE_LBL_UPLOAD; ?>" /> <a href="#" class="action" title="Cancel" style="display:none" ><span class="cancel">&nbsp;</span></a> <span class="uploadProcessing" style="display:none">&nbsp;<span></td>
<td>
<input type="file" class="input" name="file" />
<input type="button" class="button" value="<?php echo FILE_LBL_UPLOAD; ?>" />
<a href="#" class="action" title="Cancel" style="display:none" >
<span class="cancel">&nbsp;</span>
</a>
<span class="uploadProcessing" style="display:none">&nbsp;</span>
</td>
</tr>
</tbody>
<tfoot>

@ -116,11 +116,11 @@ if(isSupportedExt)
{ case 'fileVideo':
case 'fileMusic':
case 'fileFlash':
$('#playGround').html('<a id="playGround' + num + '" href="' + '../'+files[num].path + '"><div id="player">&nbsp;this is mine</div></a> '); $('#playGround' + num).html(''); $('#playGround' + num).media({ width: 255, height: 210, autoplay: true }); showThickBox($('#a' + num).get(0), appendQueryString('#TB_inline', 'height=250' + '&width=256' + '&inlineId=winPlay&modal=true')); break; //Juan Carlos Raña added '../'+ for preview video and flash on href="' + '../'+files[num].path +
$('#playGround').html('<a id="playGround' + num + '" href="' + '../'+files[num].path + '"><div id="player">&nbsp;this is mine</div></a> '); $('#playGround' + num).html(''); $('#playGround' + num).media({ width: 255, height: 210, autoplay: true }); showThickBox($('#a' + num).get(0), appendQueryString('#TB_inline', 'height=250' + '&width=256' + '&inlineId=winPlay&modal=true')); break; //Juan Carlos Ra<EFBFBD>a added '../'+ for preview video and flash on href="' + '../'+files[num].path +
default:
showThickBox(linkElem, appendQueryString('../'+path, 'KeepThis=true&TB_iframe=true&height=' + thickbox.height + '&width=' + thickbox.width));}
}
//Juan Carlos Raña (line above added '../'+ to line for preview and don't go to main showThickBox(linkElem, appendQueryString('../'+path, 'KeepThis=true&TB_iframe=true&height=' + thickbox.height + '&width=' + thickbox.width));}
//Juan Carlos Ra<EFBFBD>a (line above added '../'+ to line for preview and don't go to main showThickBox(linkElem, appendQueryString('../'+path, 'KeepThis=true&TB_iframe=true&height=' + thickbox.height + '&width=' + thickbox.width));}
}
return false;}, dcTime); return false;}); $(this).dblclick(function()
{ var d = new Date(); dcAt = d.getTime(); if (savTO != null) { clearTimeout( savTO ); savTO = null;}
@ -344,8 +344,10 @@ return menu;}
{ cancelFileUpload(elementId);} ); $(newFileUpload).show(); return false;}; function cancelFileUpload(elementId)
{ $('div#TB_window #' + elementId).parent().parent().remove(); while($('div#TB_window #fileUploadBody tr').length < 2)
{ addMoreFile();}
return false;}; function uploadFile(elementId)
{ var ext = getFileExtension($('#' + elementId).val()); if(ext == '')
return false;};
function uploadFile(elementId)
{
var ext = getFileExtension($('#' + elementId).val()); if(ext == '')
{ alert(noFileSelected ); return false;}
var supportedExts = supportedUploadExts.split(","); var isSupportedExt = false; for (i in supportedExts)
{ if(typeof(supportedExts[i]) == 'string')
@ -362,7 +364,9 @@ $('#ajax' + elementId).hide(); $('#ajax' + elementId).show(); $.ajaxFileUpload
{ if(i != 'error')
{ files[numRows][i] = data[i];}
}
addDocumentHtml(numRows);}
addDocumentHtml(numRows);
}
}
}, error: function (data, status, e)
{ $('#ajax' + elementId).hide(); alert(e);}
@ -376,7 +380,7 @@ return (id );}; function generateDownloadIframe(url)
else { var io = document.createElement('iframe'); io.id = frameId; io.name = frameId;}
io.style.position = 'absolute'; io.style.top = '-1000px'; io.style.left = '-1000px'; io.src = url; document.body.appendChild(io);}; function showThickBox(linkElem, url)
{ $(linkElem).attr('href', url); var t = linkElem.title || linkElem.name || null; var a = linkElem.href || linkElem.alt; var g = linkElem.rel || false; tb_show(t,a,g); linkElem.blur(); return false;}; function uploadFileWin(linkElem)
{ showThickBox(linkElem, appendQueryString('#TB_inline', 'height=200' + '&width=450' + '&inlineId=winUpload&modal=true')); addMoreFile();}; function newFolderWin(linkElem)
{ showThickBox(linkElem, appendQueryString('#TB_inline', 'height=200' + '&width=500' + '&inlineId=winUpload&modal=true')); addMoreFile();}; function newFolderWin(linkElem)
{ showThickBox(linkElem, appendQueryString('#TB_inline', 'height=100' + '&width=250' + '&inlineId=winNewFolder&modal=true')); return false;}; function doCreateFolder()
{ $('div#TB_window #currentNewfolderPath').val(currentFolder.path); var pattern=/^[A-Za-z0-9_ \-]+$/i; var folder = $('div#TB_window #new_folder'); if(!pattern.test($(folder).val()))
{ alert(msgInvalidFolderName);}else

@ -198,9 +198,11 @@
define('ERROR_FILE_TOO_BID', 'File too large. (max: %s)');
define('FILE_FORM_TITLE', 'File Upload Form');
define('FILE_LABEL_SELECT', 'Select File');
define('FILE_LBL_MORE', 'Add File Uploader');
define('FILE_LBL_MORE', 'Add file to upload');
define('FILE_CANCEL_UPLOAD', 'Cancel File Upload');
define('FILE_LBL_UPLOAD', 'Upload');
//file download
define('ERR_DOWNLOAD_FILE_NOT_FOUND', 'No files selected for download.');
//Rename

@ -1,7 +1,7 @@
<?php
/**
* language pack
* @author Juan Carlos Raña Trabado
* @author Juan Carlos Ra<EFBFBD>a Trabado
* @since 19/January/2009
*
*/
@ -197,6 +197,7 @@
define('FILE_LBL_MORE', 'A&ntilde;adir m&aacute;s archivos para enviar');
define('FILE_CANCEL_UPLOAD', 'Cancelar el env&iacute;o del archivo');
define('FILE_LBL_UPLOAD', 'Enviar');
//file download
define('ERR_DOWNLOAD_FILE_NOT_FOUND', 'No hay seleccionados archivos para descargar.');
//Rename

Loading…
Cancel
Save