Add a new template for the suggestion item. re #34
This commit is contained in:
parent
7f1f072450
commit
0f63050f70
3 changed files with 7 additions and 2 deletions
|
@ -72,7 +72,8 @@
|
|||
$.get('templates/default/bookdetail.html'),
|
||||
$.get('templates/default/main.html'),
|
||||
$.get('templates/default/page.html'),
|
||||
$.getJSON(url)).done(function(header, footer, bookdetail, main, page, data){
|
||||
$.get('templates/default/suggestion.html'),
|
||||
$.getJSON(url)).done(function(header, footer, bookdetail, main, page, suggestion, data){
|
||||
templateBookDetail = doT.template (bookdetail [0]);
|
||||
|
||||
var defMain = {
|
||||
|
@ -89,6 +90,9 @@
|
|||
};
|
||||
|
||||
templatePage = doT.template (page [0], undefined, defPage);
|
||||
|
||||
templateSuggestion = doT.template (suggestion [0]);
|
||||
|
||||
currentData = data [0];
|
||||
|
||||
updatePage (data [0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue