@@ -37,6 +37,7 @@ function show_partition(){
37
37
require ([' /require/modules/diskList.js?hash=' + Math .random ().toString ()], function (diskList ){
38
38
var code= " " ;
39
39
var free= dict[' Free' ];
40
+ var Unsupportfat= dict[' Unsupportfat' ];
40
41
var mounted_partition = 0 ;
41
42
partitions_array = [];
42
43
var usbDevicesList = diskList .list ();
@@ -48,8 +49,10 @@ var totalSize = simpleNum(usbDevicesList[i].partition[j].size);
48
49
sctype= usbDevicesList[i].partition [j].format || " " ;
49
50
if (usbDevicesList[i].partition [j].status == " unmounted" )
50
51
continue ;
51
- if ((usbDevicesList[i].partition [j].partName == sc_disk)&& ((usbDevicesList[i].partition [j].format .indexOf (" ext" ) != - 1 )|| (usbDevicesList[i].partition [j].format .indexOf (" tntfs " ) != - 1 )))
52
+ if ((usbDevicesList[i].partition [j].partName == sc_disk)&& ((usbDevicesList[i].partition [j].format .indexOf (" ext" ) != - 1 )|| (usbDevicesList[i].partition [j].format .indexOf (" ntfs " ) != - 1 )))
52
53
code += ' <option value="' + usbDevicesList[i].partition [j].partName + ' " selected="selected">' + usbDevicesList[i].partition [j].partName + ' (' + free + ' :' + accessableSize+ ' GB ' + sctype + ' )</option>' ;
54
+ else if (usbDevicesList[i].partition [j].format .indexOf (" fat" ) != - 1 )
55
+ code += ' <option value="0">' + Unsupportfat + ' </option>' ;
53
56
else
54
57
code += ' <option value="' + usbDevicesList[i].partition [j].partName + ' " >' + usbDevicesList[i].partition [j].partName + ' (' + free + ' :' + accessableSize+ ' GB ' + sctype + ' )</option>' ;
55
58
mounted_partition++ ;
@@ -71,11 +74,6 @@ if(document.getElementById("usb_disk_id").value==0)
71
74
alert (dict[' No Disk' ]);
72
75
return ;
73
76
}
74
- if ((sctype == " tfat" )|| (sctype == " fat" )|| (sctype == " vfat" ))
75
- {
76
- alert (dict[' Unsupportfat' ]);
77
- return ;
78
- }
79
77
document .form .submit ();
80
78
}
81
79
function reload_Soft_Center (){
@@ -183,3 +181,4 @@ document.form.sc_mount.value = "0";
183
181
<div id =" footer" ></div >
184
182
</body >
185
183
</html >
184
+
0 commit comments