user model added; message model changed; tag model added
This commit is contained in:
+25
-4
@@ -31,10 +31,23 @@ const HomeRouter = {
|
||||
_messagelist.push.apply(_messagelist, jd);
|
||||
console.log("jd: "+jd);
|
||||
for (var e in jd) {
|
||||
if (!_messages[jd[e]]) {
|
||||
get_insert_message(jd[e]);
|
||||
}
|
||||
if (!_messages[jd[e]]) {
|
||||
get_insert_message(jd[e]);
|
||||
}
|
||||
}
|
||||
/*if(!($".om-searchbar" = "")){
|
||||
for (var e in jd) {
|
||||
if (!_messages[jd[e]]) {
|
||||
get_insert_message(jd[e]);
|
||||
}
|
||||
}
|
||||
}else{
|
||||
for (var e in jd) {
|
||||
if (!_messages[jd[e]]) {
|
||||
get_search_message(jd[e]);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}).fail(function (e, f, g) {
|
||||
console.log("err: " + e + f + g);
|
||||
});
|
||||
@@ -54,7 +67,15 @@ function get_insert_message(id) {
|
||||
console.log("cannot load " + id + ".json: " + e + f + g);
|
||||
})
|
||||
}
|
||||
/*$(document).ready(function () {
|
||||
|
||||
/*function get_search_message(phrase) {
|
||||
$.ajax({ url: "api/msg/search/"+phrase, method: "GET" }).done(function (msg) {
|
||||
Vue.set(_messages, id, msg);
|
||||
}).fail(function (e, f, g) {
|
||||
console.log("cannot load " + id + ".json: " + e + f + g);
|
||||
})
|
||||
}
|
||||
$(document).ready(function () {
|
||||
console.log("egal");
|
||||
$.get('list.json').done(function (jd) {
|
||||
// _messagelist = jd;
|
||||
|
||||
Reference in New Issue
Block a user