0
我有一個懸浮窗,可自動上傳文件拖動時,我需要上傳文件時,我點擊保存按鈕,也許用點擊數不thranks點擊數上傳懸浮窗的jQuery
<section id="widget-grid" class="col-lg-12">
<div class="row">
<article class="col-sm-12">
<div class="jarviswidget" id="wid-id-4" data-widget-editbutton="false" data-widget-custombutton="false" data-widget-deletebutton="false" data-widget-sortable="false">
<header>
<span class="widget-icon"> <i class="fa fa-cloud"></i> </span>
<h2>Insertar Archivo</h2>
</header>
<div>
<div class="jarviswidget-editbox">
</div>
<div class="widget-body">
<fieldset>
<form action="../upload.php" class="dropzone" id="mydropzone"></form>
</fieldset>
<br/>
<footer>
<!-- <button id="clickable">Click me to select files</button> -->
<!-- <button id="btn-modificar" class="btn btn-primary hidden" onclick="modificar()" type="button">
Modificar <i class="fa fa-floppy-o"></i>
</button> -->
<button class="btn btn-primary btn pull-right" onclick="AgregarPauta()" type="button">
Guardar <i class="fa fa-floppy-o"></i>
</button>
</footer>
<br><br/>
</div>
</div>
</div>
</article>
</div>
</section>
的onclick正確的方法=」 AgregarPauta()」沒有工作
的js
function AgregarPauta(){
// pageSetUp();
// Dropzone.autoDiscover = true;
$("#mydropzone").dropzone({
uploadMultiple: false,
addRemoveLinks : true,
maxFilesize: 0.5,
dictResponseError: 'Error uploading file!'
});
上傳不使用onclik