public/js/jquery/plupload/script/single.js
/**
	 * Cap nhat thong tin file da upload
	 */
Cap nhat thong tin file da upload
Cap nhat thong tin file da upload
function update_file_info()
	{
		var main = $(s_main);
		$(this).nstUI({
			method:	"loadAjax",
			loadAjax:{
				url: s_url_get,
				field: {load:'_', show:''},
				datatype: 'json',
				event_complete: function(data)
				{
					var upload_complete = main.find('.upload_complete');
					upload_complete.hide();
					if (data != null)
					{
						if (data.id && data.id > 0)
						{
							var params = {
											file_name: data.orig_name,
											file_size: data._size,
											url_download: data._url_download
										};
							var html = temp_set_value(main.find('#temp #upload_complete').html(), params);
							upload_complete.html(html).fadeIn();
						}
						main.find('.upload_action #action_del').attr('href', data._url_del);
					}
				}
			}
		});
	}
function update_file_info ( ) { var main = $ ( s_main ) ; $ ( this ) . nstUI ( { method : "loadAjax" , loadAjax : { url : s_url_get , field : { load : '_' , show : '' } , datatype : 'json' , event_complete : function ( data ) { var upload_complete = main . find ( '.upload_complete' ) ; upload_complete . hide ( ) ; if ( data != null ) { if ( data . id && data . id > 0 ) { var params = { file_name : data . orig_name , file_size : data . _size , url_download : data . _url_download } ; var html = temp_set_value ( main . find ( '#temp #upload_complete' ) . html ( ) , params ) ; upload_complete . html ( html ) . fadeIn ( ) ; } main . find ( '.upload_action #action_del' ) . attr ( 'href' , data . _url_del ) ; } } } } ) ; }
Cap nhat thong tin file da upload
Cap nhat thong tin file da upload