mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
place js for file chooser in js file for page
This commit is contained in:
parent
cefb89a8c2
commit
621846c86d
|
@ -137,10 +137,11 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
$this->printKeywordChooserJs("form1");
|
$this->printKeywordChooserJs("form1");
|
||||||
if($dropfolderdir) {
|
if($dropfolderdir) {
|
||||||
$this->printDropFolderChooserJs("form1");
|
$this->printDropFolderChooserJs("form1");
|
||||||
}
|
}
|
||||||
|
$this->printFileChooserJs();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
|
@ -305,7 +306,7 @@ $(document).ready(function() {
|
||||||
);
|
);
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("local_file"),
|
getMLText("local_file"),
|
||||||
$enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooser('userfile[]', false).($enablemultiupload ? '<a class="" id="new-file"><?php printMLtext("add_multiple_files") ?></a>' : '')
|
$enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooserHtml('userfile[]', false).($enablemultiupload ? '<a class="" id="new-file"><?php printMLtext("add_multiple_files") ?></a>' : '')
|
||||||
);
|
);
|
||||||
if($dropfolderdir) {
|
if($dropfolderdir) {
|
||||||
$this->formField(
|
$this->formField(
|
||||||
|
|
|
@ -38,6 +38,8 @@ class SeedDMS_View_AddFile extends SeedDMS_Bootstrap_Style {
|
||||||
header('Content-Type: application/javascript');
|
header('Content-Type: application/javascript');
|
||||||
if($enablelargefileupload)
|
if($enablelargefileupload)
|
||||||
$this->printFineUploaderJs('../op/op.UploadChunks.php', $partitionsize, $maxuploadsize);
|
$this->printFineUploaderJs('../op/op.UploadChunks.php', $partitionsize, $maxuploadsize);
|
||||||
|
|
||||||
|
$this->printFileChooserJs();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
$(document).ready( function() {
|
$(document).ready( function() {
|
||||||
|
@ -155,7 +157,7 @@ $(document).ready( function() {
|
||||||
<?php
|
<?php
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("local_file"),
|
getMLText("local_file"),
|
||||||
($enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooser('userfile[]', false))
|
($enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooserHtml('userfile[]', false))
|
||||||
);
|
);
|
||||||
$options = array();
|
$options = array();
|
||||||
$options[] = array("", getMLText('document'));
|
$options[] = array("", getMLText('document'));
|
||||||
|
|
|
@ -85,6 +85,8 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$this->printFileChooserJs();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
|
@ -143,7 +145,7 @@ $(document).ready(function() {
|
||||||
);
|
);
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("approval_file"),
|
getMLText("approval_file"),
|
||||||
$this->getFileChooser('approvalfile', false)
|
$this->getFileChooserHtml('approvalfile', false)
|
||||||
);
|
);
|
||||||
$options = array();
|
$options = array();
|
||||||
if($approvalStatus['status'] != 1)
|
if($approvalStatus['status'] != 1)
|
||||||
|
|
|
@ -79,6 +79,8 @@ $(document).ready( function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$this->printFileChooserJs();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
|
@ -170,7 +172,7 @@ $(document).ready( function() {
|
||||||
);
|
);
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("new_user_image"),
|
getMLText("new_user_image"),
|
||||||
$this->getFileChooser('userfile', false, "image/jpeg")
|
$this->getFileChooserHtml('userfile', false, "image/jpeg")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($enablelanguageselector){
|
if ($enablelanguageselector){
|
||||||
|
|
|
@ -61,6 +61,8 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$this->printFileChooserJs();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function info() { /* {{{ */
|
function info() { /* {{{ */
|
||||||
|
@ -150,7 +152,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style {
|
||||||
<?php
|
<?php
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("extension_archive"),
|
getMLText("extension_archive"),
|
||||||
$this->getFileChooser('userfile', false)
|
$this->getFileChooserHtml('userfile', false)
|
||||||
);
|
);
|
||||||
$this->formSubmit("<i class=\"icon-upload\"></i> ".getMLText('import_extension'));
|
$this->formSubmit("<i class=\"icon-upload\"></i> ".getMLText('import_extension'));
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -85,6 +85,8 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$this->printFileChooserJs();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
|
@ -141,7 +143,7 @@ $(document).ready(function() {
|
||||||
);
|
);
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("review_file"),
|
getMLText("review_file"),
|
||||||
$this->getFileChooser('review_file', false)
|
$this->getFileChooserHtml('review_file', false)
|
||||||
);
|
);
|
||||||
$options = array();
|
$options = array();
|
||||||
if($reviewStatus['status'] != 1)
|
if($reviewStatus['status'] != 1)
|
||||||
|
|
|
@ -44,6 +44,7 @@ class SeedDMS_View_UpdateDocument extends SeedDMS_Bootstrap_Style {
|
||||||
$this->printCheckboxPresetButtonJs();
|
$this->printCheckboxPresetButtonJs();
|
||||||
if($enablelargefileupload)
|
if($enablelargefileupload)
|
||||||
$this->printFineUploaderJs('../op/op.UploadChunks.php', $partitionsize, $maxuploadsize, false);
|
$this->printFineUploaderJs('../op/op.UploadChunks.php', $partitionsize, $maxuploadsize, false);
|
||||||
|
$this->printFileChooserJs();
|
||||||
?>
|
?>
|
||||||
$(document).ready( function() {
|
$(document).ready( function() {
|
||||||
jQuery.validator.addMethod("alternatives", function(value, element, params) {
|
jQuery.validator.addMethod("alternatives", function(value, element, params) {
|
||||||
|
@ -221,7 +222,7 @@ console.log(element);
|
||||||
<?php
|
<?php
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("local_file"),
|
getMLText("local_file"),
|
||||||
$enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooser('userfile', false)
|
$enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooserHtml('userfile', false)
|
||||||
);
|
);
|
||||||
if($dropfolderdir) {
|
if($dropfolderdir) {
|
||||||
$this->formField(
|
$this->formField(
|
||||||
|
|
|
@ -78,6 +78,8 @@ $(document).ready( function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$this->printFileChooserJs();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function info() { /* {{{ */
|
function info() { /* {{{ */
|
||||||
|
@ -379,12 +381,12 @@ $(document).ready( function() {
|
||||||
);
|
);
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("new_user_image"),
|
getMLText("new_user_image"),
|
||||||
$this->getFileChooser('userfile', false, "image/jpeg")
|
$this->getFileChooserHtml('userfile', false, "image/jpeg")
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("user_image"),
|
getMLText("user_image"),
|
||||||
$this->getFileChooser('userfile', false, "image/jpeg")
|
$this->getFileChooserHtml('userfile', false, "image/jpeg")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user