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') { | ||||
| 		var text_el = document.getElementById(divbox.id + '-text'); | ||||
| 		text = text_el.innerHTML.unescapeHTML(); | ||||
| 
 | ||||
| 	} else { | ||||
| 		text = ''; | ||||
| 	} | ||||
|  |  | |||
|  | @ -60,7 +60,7 @@ | |||
| 		onmouseout='box_onmouseout(this,{% if o.status = 'opraveno' %}1{% else %}0{% endif %})' > | ||||
| 	   | ||||
|     <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'> | ||||
| 	  <form  action='' onsubmit='save_scroll(this)' method='POST'> | ||||
| 	   {% csrf_token %} | ||||
|  | @ -94,7 +94,7 @@ | |||
| 		<img src="/static/korektury/imgs/edit-gr.png"/> | ||||
| 	   </button> | ||||
| 	   {% 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"/> | ||||
| 	   </button> | ||||
| 	   {% endif %} | ||||
|  | @ -105,7 +105,7 @@ | |||
| 	   <a href='#op{{o.id}}'><button type='button' title='Link na opravu'> | ||||
| 			   <img src="/static/korektury/imgs/link.png"/> | ||||
| 	   </button></a> | ||||
| 	   <button><a href='#op579'> | ||||
| 	   <button><a href='#TODO'> | ||||
| 			   <img title='Další oprava' src="/static/korektury/imgs/next.png"/> | ||||
| 	   </a></button> | ||||
| 	     | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue