Commit 9c1ad6f8 authored by Alexandra Rogova's avatar Alexandra Rogova

changed paths again

parent a30ae728
......@@ -6,7 +6,7 @@
.declareAcquiredMethod("get_model", "get_model")
.declareMethod("readFile", function(link) {
.declareMethod("read_file", function(link) {
var storage;
var gadget = this;
gadget.get_model()
......@@ -74,7 +74,6 @@
.push(function (result){
var i;
for (i = 0; i<result.data.rows.length; i+=1){
//console.log(result.data.rows[i].id);
if (result.data.rows[i].id === title) return true;
}
return false;
......
......@@ -2,9 +2,9 @@
<html>
<head>
<title>Mynij</title>
<script src="./external/rsvp-2.0.4.js"></script>
<script src="./external/jio-latest.js"></script>
<script src="./external/renderjs-latest.js"></script>
<script src="../jio/external/rsvp-2.0.4.js"></script>
<script src="../jio/dist/jio-latest.js"></script>
<script src="../renderjs/dist/renderjs-latest.js"></script>
<script src="search.js"></script>
<link rel="stylesheet" type="text/css" href="mynij.css">
</head>
......
......@@ -60,7 +60,8 @@
promise_list = [],
i;
for (i = 0; i < gadget.state.to_load.length; i++){
promise_list.push(gadget.state.parser_gadget.readFile("./test-files/" + gadget.state.to_load[i]));
//console.log(gadget.state.parser_gadget);
promise_list.push(gadget.state.parser_gadget.read_file("./test-files/" + gadget.state.to_load[i]));
}
RSVP.all(promise_list);
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment