Tan, Shiyou <shiyoux.tan@intel.com>
*/
+var RESOURCE_DIR;
+$.ajax({
+ url:"/opt/usr/home/owner/share/TCT_CONFIG",
+ data:{},
+ async:false,
+ success:function(data){
+ var regEx = /DEVICE_SUITE_TARGET_30=(.+)/i;
+ var path = regEx.exec(data);
+ RESOURCE_DIR = path[1];
+ }
+});
var installUrl;
$(document).delegate("#main", "pageinit", function() {
DisablePassButton();
}
tizen.filesystem.resolve(
- 'documents',
+ 'file://' + RESOURCE_DIR + '/Documents',
function(dir){
documentsDir = dir;
dir.listFiles(onsuccess, onerror);
{
documentsDir.copyTo(
files[i].fullPath,
- "documents/Clipboard.wgt",
+ "file://" + RESOURCE_DIR + "/Documents/Clipboard.wgt",
true,
function() {
console.log("Clipboard Precondition Success(2)!");
Tan, Shiyou <shiyoux.tan@intel.com>
*/
+var RESOURCE_DIR;
+$.ajax({
+ url:"/opt/usr/home/owner/share/TCT_CONFIG",
+ data:{},
+ async:false,
+ success:function(data){
+ var regEx = /DEVICE_SUITE_TARGET_30=(.+)/i;
+ var path = regEx.exec(data);
+ RESOURCE_DIR = path[1];
+ }
+});
var installUrl;
$(document).delegate("#main", "pageinit", function() {
DisablePassButton();
}
tizen.filesystem.resolve(
- 'documents',
+ 'file://' + RESOURCE_DIR + '/Documents',
function(dir){
documentsDir = dir;
dir.listFiles(onsuccess, onerror);
{
documentsDir.copyTo(
files[i].fullPath,
- "documents/DragandDrop.wgt",
+ "file://" + RESOURCE_DIR + "/Documents/DragandDrop.wgt",
true,
function() {
console.log("DragandDrop Precondition Success(2)!");
Tan, Shiyou <shiyoux.tan@intel.com>
*/
+var RESOURCE_DIR;
+$.ajax({
+ url:"/opt/usr/home/owner/share/TCT_CONFIG",
+ data:{},
+ async:false,
+ success:function(data){
+ var regEx = /DEVICE_SUITE_TARGET_30=(.+)/i;
+ var path = regEx.exec(data);
+ RESOURCE_DIR = path[1];
+ }
+});
var installUrl;
$(document).delegate("#main", "pageinit", function() {
DisablePassButton();
}
tizen.filesystem.resolve(
- 'documents',
+ 'file://' + RESOURCE_DIR + '/Documents',
function(dir){
documentsDir = dir;
dir.listFiles(onsuccess, onerror);
{
documentsDir.copyTo(
files[i].fullPath,
- "documents/Clipboard.wgt",
+ "file://" + RESOURCE_DIR + "/Documents/Clipboard.wgt",
true,
function() {
console.log("Clipboard Precondition Success(2)!");
Tan, Shiyou <shiyoux.tan@intel.com>
*/
+var RESOURCE_DIR;
+$.ajax({
+ url:"/opt/usr/home/owner/share/TCT_CONFIG",
+ data:{},
+ async:false,
+ success:function(data){
+ var regEx = /DEVICE_SUITE_TARGET_30=(.+)/i;
+ var path = regEx.exec(data);
+ RESOURCE_DIR = path[1];
+ }
+});
var installUrl;
$(document).delegate("#main", "pageinit", function() {
DisablePassButton();
}
tizen.filesystem.resolve(
- 'documents',
+ 'file://' + RESOURCE_DIR + '/Documents',
function(dir){
documentsDir = dir;
dir.listFiles(onsuccess, onerror);
{
documentsDir.copyTo(
files[i].fullPath,
- "documents/DragandDrop.wgt",
+ "file://" + RESOURCE_DIR + "/Documents/DragandDrop.wgt",
true,
function() {
console.log("DragandDrop Precondition Success(2)!");