| 
					
				 | 
			
			
				@@ -4,7 +4,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <table id="example" class="table" cellspacing="0" width="60%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <thead> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <tr> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <th class="table__head">編號</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <th class="table__head">#</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <th class="table__head">標題</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <th class="table__head">日期</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!-- <th class="table__head">順序</th> --> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -23,7 +23,55 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script type="text/javascript" src="{{url_for('static', filename='config.js')}}"></script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script type="text/javascript" src="{{url_for('static', filename='js/yo.js')}}"></script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<div id="dialog-form"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<div class="modal fade" id="myModal"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <div class="modal-dialog"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <div class="modal-content"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div class="modal-header"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <h4 class="modal-title">作品主資訊修改</h4> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <button type="button" class="close" data-dismiss="modal">×</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div class="modal-body"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <table class="table table-bordered"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <tbody> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <tr> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <td><h4>標題</h4></td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <td><input class="form-control" id="ctitle" type="text" /> <div class="mt-1 text-danger">(建議字數: 15字內)</div></td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </tr> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <tr> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <td><h4>描述</h4></td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <td><textarea class="form-control" rows="3" id="cdescription"></textarea> <div class="mt-1 text-danger">(建議字數: 50字內)</div></td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </tr> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <tr> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <td><h4>日期</h4></td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <td><input class="form-control" id="cdate" type="text" /></td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </tr> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <tr> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <td><h4>是否顯示</h4></td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <td><input id="cdraft" type="checkbox" checked="true" /></td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </tr> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </tbody> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div class="d-none"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <input id="ctype" type="text" /><br /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <input id="curl" type="text" /><br /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <input id="cimage" type="text" /><br /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <input id="cweight" type="text" /><br /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <input id="ctag" type="text" /><br /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </div>         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div class="modal-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <button type="button" class="btn btn-danger" onclick="updateHeader();location.reload();">完成修改</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!-- <div id="dialog-form"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <input id="ctitle" type="text" /><br /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <input id="cdate" type="text" /><br /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <input id="cdraft" type="checkbox" checked="true" /><br /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -34,7 +82,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <input id="cweight" type="text" /><br /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <input id="ctag" type="text" /><br /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <button onclick="updateHeader();location.reload();">完成修改</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</div> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   editTarget = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   frontMatters = []; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -45,7 +93,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       aa = data[0]['content']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const content = _.get(data, '0.content', ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       blocks = parseMd(content); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      $("#dialog-form").dialog(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // $("#dialog-form").dialog(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $("#myModal").modal(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       editTarget = url; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //console.log(frontMatters); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 |