Opraven editacni box.
Korektury se jiz daji spravne opravovat.
This commit is contained in:
		
							parent
							
								
									0915838f26
								
							
						
					
					
						commit
						2a6dafd381
					
				
					 2 changed files with 8 additions and 7 deletions
				
			
		|  | @ -125,6 +125,7 @@ function box_edit(button, action) | ||||||
| 	if (action == 'update') { | 	if (action == 'update') { | ||||||
| 		var text_el = document.getElementById(divbox.id + '-text'); | 		var text_el = document.getElementById(divbox.id + '-text'); | ||||||
| 		text = text_el.innerHTML.unescapeHTML(); | 		text = text_el.innerHTML.unescapeHTML(); | ||||||
|  | 
 | ||||||
| 	} else { | 	} else { | ||||||
| 		text = ''; | 		text = ''; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | @ -60,7 +60,7 @@ | ||||||
| 		onmouseout='box_onmouseout(this,{% if o.status = 'opraveno' %}1{% else %}0{% endif %})' > | 		onmouseout='box_onmouseout(this,{% if o.status = 'opraveno' %}1{% else %}0{% endif %})' > | ||||||
| 	   | 	   | ||||||
|     <div class='corr-header'>  |     <div class='corr-header'>  | ||||||
| 	<div class='author'>{{o.autor}}</div> | 	<div class='author' id='op{{o.id}}-autor'>{{o.autor}}</div> | ||||||
| 	 <div class='float-right'> | 	 <div class='float-right'> | ||||||
| 	  <form  action='' onsubmit='save_scroll(this)' method='POST'> | 	  <form  action='' onsubmit='save_scroll(this)' method='POST'> | ||||||
| 	   {% csrf_token %} | 	   {% csrf_token %} | ||||||
|  | @ -89,12 +89,12 @@ | ||||||
| 	   </button> | 	   </button> | ||||||
| 	   {% endif %} | 	   {% endif %} | ||||||
| 	     | 	     | ||||||
|        {% if o.komentare %} |        	   {% if o.komentare %} | ||||||
| 		<button type='button' title="Korekturu nelze upravit – už ji někdo okomentoval"> | 	   <button type='button' title="Korekturu nelze upravit – už ji někdo okomentoval"> | ||||||
| 			<img src="/static/korektury/imgs/edit-gr.png"/> | 		<img src="/static/korektury/imgs/edit-gr.png"/> | ||||||
| 		</button> | 	   </button> | ||||||
| 	   {% else %} | 	   {% else %} | ||||||
| 	   <button type='button' onclick='box_edit(this);' title='Oprav opravu'> | 	   <button type='button' onclick='box_edit(this,"update");' title='Oprav opravu'> | ||||||
| 		   <img src="/static/korektury/imgs/edit.png"/> | 		   <img src="/static/korektury/imgs/edit.png"/> | ||||||
| 	   </button> | 	   </button> | ||||||
| 	   {% endif %} | 	   {% endif %} | ||||||
|  | @ -105,7 +105,7 @@ | ||||||
| 	   <a href='#op{{o.id}}'><button type='button' title='Link na opravu'> | 	   <a href='#op{{o.id}}'><button type='button' title='Link na opravu'> | ||||||
| 			   <img src="/static/korektury/imgs/link.png"/> | 			   <img src="/static/korektury/imgs/link.png"/> | ||||||
| 	   </button></a> | 	   </button></a> | ||||||
| 	   <button><a href='#op579'> | 	   <button><a href='#TODO'> | ||||||
| 			   <img title='Další oprava' src="/static/korektury/imgs/next.png"/> | 			   <img title='Další oprava' src="/static/korektury/imgs/next.png"/> | ||||||
| 	   </a></button> | 	   </a></button> | ||||||
| 	     | 	     | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue