From 9048cd50bf5e0a418d1d95498bb593961f72db36 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Wed, 15 Feb 2012 09:51:12 -0800 Subject: Revert "Reverting text/html document classes and setting up MVC folder structure" This reverts commit 68ce64a5a2f4a71b54d33916aaf1d57161302425. Signed-off-by: Ananya Sen --- js/io/system/coreioapi.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'js/io/system/coreioapi.js') diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js index 507804fd..ea9627cc 100755 --- a/js/io/system/coreioapi.js +++ b/js/io/system/coreioapi.js @@ -97,12 +97,10 @@ window.hack = function (name, type) { this.application.ninja.ioMediator.fileNew('Users/kgq387/Desktop/Ninja Cloud/Disk/'+name+'.'+type, '/js/io/templates/files/'+type+'.txt', function (status) {console.log(status)}); }.bind(this); */ - /* -window.hack = function (path) { + window.hack = function (path) { // this.application.ninja.ioMediator.fileOpen('Users/kgq387/Desktop/Ninja Cloud/Disk/'+path, function (result) {console.log(result)}); }.bind(this); -*/ } }, //////////////////////////////////////////////////////////////////// -- cgit v1.2.3 From e2b97c951a9a5a0c4ff831d44fdd82177cbd82ad Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Wed, 15 Feb 2012 10:54:14 -0800 Subject: Revert "Revert "Reverting text/html document classes and setting up MVC folder structure"" This reverts commit 9048cd50bf5e0a418d1d95498bb593961f72db36. Signed-off-by: Ananya Sen --- js/io/system/coreioapi.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'js/io/system/coreioapi.js') diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js index ea9627cc..507804fd 100755 --- a/js/io/system/coreioapi.js +++ b/js/io/system/coreioapi.js @@ -97,10 +97,12 @@ window.hack = function (name, type) { this.application.ninja.ioMediator.fileNew('Users/kgq387/Desktop/Ninja Cloud/Disk/'+name+'.'+type, '/js/io/templates/files/'+type+'.txt', function (status) {console.log(status)}); }.bind(this); */ - window.hack = function (path) { + /* +window.hack = function (path) { // this.application.ninja.ioMediator.fileOpen('Users/kgq387/Desktop/Ninja Cloud/Disk/'+path, function (result) {console.log(result)}); }.bind(this); +*/ } }, //////////////////////////////////////////////////////////////////// -- cgit v1.2.3 From 4641dbefb6e8cb41f1f3d7f4d070d50bcaed94be Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Thu, 16 Feb 2012 17:32:57 -0800 Subject: remove similar function from coreioapi.js Signed-off-by: Ananya Sen --- js/io/system/coreioapi.js | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'js/io/system/coreioapi.js') diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js index 507804fd..b8aa8890 100755 --- a/js/io/system/coreioapi.js +++ b/js/io/system/coreioapi.js @@ -1110,37 +1110,6 @@ window.hack = function (path) { } return status; } - }, - - //////////////////////////////////////////////////////////////////// - /*** - * check if the file exists - */ - checkFileExists:{ - value: function(fileName, folderUri, fileType){ - var uri = "", response=null, status=true; - - //prepare absolute uri - if(/[^/\\]$/g.test(folderUri)){ - folderUri = folderUri + "/"; - } - - if(!!fileType && (fileName.lastIndexOf(fileType) !== (fileName.length - fileType.length))){ - fileName = fileName+fileType; - } - - uri = ""+folderUri+fileName; - - response = this.fileExists({"uri":uri}); - if(!!response && response.success && (response.status === 204)){ - status = true; - }else if(!!response && response.success && (response.status === 404)){ - status = false; - }else{ - status = false; - } - return status; - } } //////////////////////////////////////////////////////////////////// }); -- cgit v1.2.3