[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13803]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [13803] |
Date: |
Sat, 29 Aug 2015 00:33:41 +0000 |
Revision: 13803
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13803
Author: nelson224
Date: 2015-08-29 00:33:41 +0000 (Sat, 29 Aug 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/rental/js/rental/contract.edit.js
Modified: branches/dev-syncromind/rental/js/rental/contract.edit.js
===================================================================
--- branches/dev-syncromind/rental/js/rental/contract.edit.js 2015-08-29
00:33:26 UTC (rev 13802)
+++ branches/dev-syncromind/rental/js/rental/contract.edit.js 2015-08-29
00:33:41 UTC (rev 13803)
@@ -12,6 +12,8 @@
var set_invoice_data = 0;
+var link_upload_document = null;
+
function formatterPrice (key, oData)
{
var amount = $.number( oData[key], decimalPlaces, decimalSeparator,
thousandsSeparator ) + ' ' + currency_suffix;
@@ -186,6 +188,28 @@
set_invoice_data = 1;
}
};
+
+ $('#upload_button').on('click', function()
+ {
+ var form = document.forms.namedItem("form_upload");
+ var file_data = $('#ctrl_upoad_path').prop('files')[0];
+ var form_data = new FormData(form);
+ form_data.append('file_path', file_data);
+ form_data.append('document_type', $('#document_type').val());
+ form_data.append('document_title', $('#document_title').val());
+
+ $.ajax({
+ url: link_upload_document,
+ cache: false,
+ contentType: false,
+ processData: false,
+ data: form_data,
+ type: 'post',
+ success: function(result){
+ alert(result);
+ }
+ });
+ });
});
/******************************************************************************/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13803],
Nelson Guerra <=