diff options
| author | root <root@kabir-PC> | 2016-03-30 12:40:16 +0200 |
|---|---|---|
| committer | root <root@kabir-PC> | 2016-03-30 12:40:16 +0200 |
| commit | 750dcc61ceff516a9233cc10dc138a9c898a61f6 (patch) | |
| tree | a90e51b9358db869fdefd0d111465799c945563f /client/js/services/Network.js | |
| parent | 804fa322d841d73ee7592885ec500dc94e91b9e6 (diff) | |
mettre les private pour la classe network coté serveur et mes premières essaie pour angularjs notamement extraction des donnée
Diffstat (limited to 'client/js/services/Network.js')
| -rw-r--r-- | client/js/services/Network.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/client/js/services/Network.js b/client/js/services/Network.js new file mode 100644 index 0000000..bd2a24f --- /dev/null +++ b/client/js/services/Network.js @@ -0,0 +1,27 @@ + +mainApp.factory('Network',[ '$http', 'Identity', function($http, Identity){ + + var data={}; + data.networks=null; + +var ListId=function(fileToUpload, callback) { + + + var result=$http.post('../server/index.php', + $.param({"token" : Identity.getToken(), "task" : "network", 'action':'list_network_ids'})); + + // Wait and handle the response + result.then(function (response){ + callback(parseUploadImageAnswer(response, false)); + },function(response){ + callback(parseUploadImageAnswer(response, true)); + }); + + console.log(result) + + } + + +}]); + + |
