mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-30 23:03:02 +00:00 
			
		
		
		
	Fixed missing js files for sorting shelfs
This commit is contained in:
		
							
								
								
									
										2
									
								
								cps/static/js/Sortable.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								cps/static/js/Sortable.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										30
									
								
								cps/static/js/shelforder.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								cps/static/js/shelforder.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| Sortable.create(sortTrue, { | ||||
|   group: "sorting", | ||||
|   sort: true | ||||
| }); | ||||
|  | ||||
| function sendData(path){ | ||||
|     var elements; | ||||
|     var counter; | ||||
|     var maxElements; | ||||
|     var tmp=[]; | ||||
|  | ||||
|     elements=Sortable.utils.find(sortTrue,"div"); | ||||
|     maxElements=elements.length; | ||||
|  | ||||
|     var form = document.createElement("form"); | ||||
|     form.setAttribute("method", "post"); | ||||
|     form.setAttribute("action", path); | ||||
|  | ||||
|  | ||||
|     for(counter=0;counter<maxElements;counter++){ | ||||
|       tmp[counter]=elements[counter].getAttribute("id"); | ||||
|       var hiddenField = document.createElement("input"); | ||||
|       hiddenField.setAttribute("type", "hidden"); | ||||
|       hiddenField.setAttribute("name", elements[counter].getAttribute("id")); | ||||
|       hiddenField.setAttribute("value", counter+1); | ||||
|       form.appendChild(hiddenField); | ||||
|     } | ||||
|     document.body.appendChild(form); | ||||
|     form.submit(); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 OzzieIsaacs
					OzzieIsaacs