* Code for task#110688.
This commit is contained in:
@@ -547,6 +547,7 @@ class baseValidater
|
||||
{
|
||||
global $config;
|
||||
if(empty($_FILES)) return $_FILES;
|
||||
if(isset($_FILES['scriptFile'])) unset($_FILES['scriptFile']);
|
||||
|
||||
foreach($_FILES as $varName => $files)
|
||||
{
|
||||
|
||||
@@ -63,10 +63,6 @@ function hideUploadScriptBtn()
|
||||
|
||||
function readScriptContent()
|
||||
{
|
||||
$uploadBtnLabel = $('#scriptFile').next();
|
||||
|
||||
$uploadBtnLabel.toggle($('#scriptFile').parents('td').find('.file-list').length < 1);
|
||||
|
||||
var reader = new FileReader();
|
||||
reader.readAsText($('#scriptFile')[0].files[0], 'UTF-8');
|
||||
reader.onload = function(evt){$('[name=script]').val(evt.target.result);}
|
||||
|
||||
Reference in New Issue
Block a user