diff --git a/o2web/source/o2_core/o2/widget/AttachmentController.js b/o2web/source/o2_core/o2/widget/AttachmentController.js index 76efe317fe4751688110d3894e46633364f3c385..84f11964cb1c7a7765f5cf6c165cb6f062c156d7 100644 --- a/o2web/source/o2_core/o2/widget/AttachmentController.js +++ b/o2web/source/o2_core/o2/widget/AttachmentController.js @@ -1261,7 +1261,7 @@ o2.widget.AttachmentController.Attachment = new Class({ }, createInforNode: function(callback){ var size = ""; - var k = this.data.length/1204; + var k = this.data.length/1024; if (k>1024){ var m = k/1024; m = Math.round(m*100)/100; @@ -1303,7 +1303,7 @@ o2.widget.AttachmentController.Attachment = new Class({ this.textTitleNode.set("text", this.data.name); var size = ""; - var k = this.data.length/1204; + var k = this.data.length/1024; if (k>1024){ var m = k/1024; m = Math.round(m*100)/100; @@ -1343,7 +1343,7 @@ o2.widget.AttachmentController.Attachment = new Class({ this.textTitleNode.set("text", this.data.name); var size = ""; - var k = this.data.length/1204; + var k = this.data.length/1024; if (k>1024){ var m = k/1024; m = Math.round(m*100)/100; @@ -1755,7 +1755,7 @@ o2.widget.AttachmentController.AttachmentMin = new Class({ this.textNode.set("text", this.data.name); var size = ""; - var k = this.data.length/1204; + var k = this.data.length/1024; if (k>1024){ var m = k/1024; m = Math.round(m*100)/100; @@ -1810,7 +1810,7 @@ o2.widget.AttachmentController.AttachmentMin = new Class({ this.textNode = new Element("div", {"styles": this.css.minAttachmentTextNode_list}).inject(this.node); this.textNode.set("text", this.data.name); var size = ""; - var k = this.data.length/1204; + var k = this.data.length/1024; if (k>1024){ var m = k/1024; m = Math.round(m*100)/100; diff --git a/o2web/source/x_component_File/AttachmentController.js b/o2web/source/x_component_File/AttachmentController.js index f87cd12d056c8bd9a41696471474a01d8f82878f..86afcb8b07fd0149654df6fec506ce4e1ab17721 100644 --- a/o2web/source/x_component_File/AttachmentController.js +++ b/o2web/source/x_component_File/AttachmentController.js @@ -152,7 +152,7 @@ MWF.xApplication.File.AttachmentController.Attachment = new Class({ this.textTitleNode.set("text", this.data.name); var size = ""; - var k = this.data.length/1204; + var k = this.data.length/1024; if (k>1024){ var m = k/1024; m = Math.round(m*100)/100; @@ -196,7 +196,7 @@ MWF.xApplication.File.AttachmentController.Attachment = new Class({ this.textTitleNode.set("text", this.data.name); var size = ""; - var k = this.data.length/1204; + var k = this.data.length/1024; if (k>1024){ var m = k/1024; m = Math.round(m*100)/100; @@ -224,7 +224,7 @@ MWF.xApplication.File.AttachmentController.Attachment = new Class({ }, createInforNode: function(callback){ var size = ""; - var k = this.data.length/1204; + var k = this.data.length/1024; if (k>1024){ var m = k/1024; m = Math.round(m*100)/100; @@ -314,7 +314,7 @@ MWF.xApplication.File.AttachmentController.Folder = new Class({ }, createInforNode: function(callback){ var size = ""; - var k = this.data.size/1204; + var k = this.data.size/1024; if (k>1024){ var m = k/1024; m = Math.round(m*100)/100;