// jQuery WikiUpload Plugin
//
// Version 1.01
//
// K Balasubramanian
// http://kbala.com
// 19 April 2010
//
//
// Usage: $('.fileinfodemo').fileInfo( options, callback )
//
// Options:  script         - location of the serverside AJAX file to use; default = jqueryFileTree.php
//			 type			- Share | Email | Edit 	
//           
//
if(jQuery) (function($){
	
	$.extend($.fn, {
		fileInfo: function(o) {
			// Defaults
			$(this).each( function() {
				
				function showInfo(c, o) {
					$.post('/shares/get_file_info', o, function(data) {
						$(c).html(data);
					});
				}
				// Get the initial file list
				showInfo( $(this), o );
			});
		}
	});
	
})(jQuery);
