3
* author: Anthony Dillon
6
function Folder($name, $location){
7
if ($name==undefined) { $name='Untitled Folder';}
8
if ($location==undefined) { $location='/Home';}
11
var _location = $location;
14
this.name = function (){ return _name; };
15
this.size = function (){ return _size; };
16
this.location = function (){ return _location; };
17
this.in_bin = function (){ return _in_bin; };
19
this.rename = function($name){
23
this.bin = function($in_bin){
27
this.move = function($location){
28
_location = $location;
31
this.drawIcon = function($id, $type){
32
return "<div class='file-folder "+$type+"' data-type='folder' data-id='"+$id+"'><p></p><span>"+_name+"</span></div>";
35
this.type = function(){