mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-31 00:53:08 +00:00 
			
		
		
		
	restify album view
This commit is contained in:
		| @@ -126,22 +126,6 @@ | ||||
|     </nav> | ||||
|   </div> | ||||
|   <script> | ||||
|     const initialUrlParams = new URLSearchParams(window.location.search); | ||||
|  | ||||
|     function update_query_string(key, value) { | ||||
|       const url = new URL(window.location.href); | ||||
|       if (!value) { | ||||
|             {# If the value is null, undefined or empty => delete it #} | ||||
|         url.searchParams.delete(key) | ||||
|       } else if (Array.isArray(value)) { | ||||
|         url.searchParams.delete(key) | ||||
|         value.forEach((v) => url.searchParams.append(key, v)) | ||||
|       } else { | ||||
|         url.searchParams.set(key, value); | ||||
|       } | ||||
|       history.pushState(null, document.title, url.toString()); | ||||
|     } | ||||
|  | ||||
|     {# | ||||
|     How does this work : | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user