| 1 |
// JavaScript |
| 2 |
(function($) { |
| 3 |
|
| 4 |
itemCSV = { |
| 5 |
settings: { |
| 6 |
url: uscesL10n.requestFile, |
| 7 |
type: 'POST', |
| 8 |
cache: false |
| 9 |
}, |
| 10 |
|
| 11 |
|
| 12 |
registration : function() { |
| 13 |
|
| 14 |
//$("#msg").html('<span>データチェック中 </span><img src="' + uscesL10n.USCES_PLUGIN_URL + '/images/loading.gif" />'); |
| 15 |
|
| 16 |
var s = itemCSV.settings; |
| 17 |
s.data = 'action=wel_item_upload_ajax®file=' + tempfilename + '&noheader=true'; |
| 18 |
console.log(s.data); |
| 19 |
|
| 20 |
$.ajax( s ).done(function( data ){ |
| 21 |
console.log('Reg OK'); |
| 22 |
|
| 23 |
//$("#msg").html(data); |
| 24 |
console.log(data); |
| 25 |
|
| 26 |
}).fail(function( msg ){ |
| 27 |
console.log('Reg NG'); |
| 28 |
|
| 29 |
console.log(msg); |
| 30 |
//$("#newitemopt_loading").html(''); |
| 31 |
|
| 32 |
}); |
| 33 |
return false; |
| 34 |
}, |
| 35 |
}; |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
})(jQuery); |
| 40 |
|
| 41 |
|