|
@@ -3,7 +3,7 @@
|
3
|
3
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.2.1/mustache.min.js"></script>
|
4
|
4
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.1.6/zepto.min.js"></script>
|
5
|
5
|
<script src="../lib/php_crud_api_transform.js"></script>
|
6
|
|
-<script id="PostList_Item" type="text/mustache">
|
|
6
|
+<script id="PostListTemplate" type="text/mustache">
|
7
|
7
|
<ul>
|
8
|
8
|
{{#posts}}
|
9
|
9
|
<li>
|
|
@@ -44,10 +44,10 @@ function PostList(element, template) {
|
44
|
44
|
$(element).on('click','a',self.delete)
|
45
|
45
|
self.post();
|
46
|
46
|
};
|
47
|
|
-$(function(){ new PostList('#myApplication','#PostList_Item'); });
|
|
47
|
+$(function(){ new PostList('#PostListDiv','#PostListTemplate'); });
|
48
|
48
|
</script>
|
49
|
49
|
</head>
|
50
|
50
|
<body>
|
51
|
|
-<div id="myApplication">Loading...</div>
|
|
51
|
+<div id="PostListDiv">Loading...</div>
|
52
|
52
|
</body>
|
53
|
53
|
</html>
|