Compare commits
	
		
			No commits in common. "57b8a3ce0bbbdbf4b2922a9ee7c4d8721053e978" and "7e30e99c81243e9e4a4106ac453e90959bc959af" have entirely different histories.
		
	
	
		
			57b8a3ce0b
			...
			7e30e99c81
		
	
		
							
								
								
									
										50
									
								
								bsdialog4.js
									
									
									
									
									
								
							
							
						
						
									
										50
									
								
								bsdialog4.js
									
									
									
									
									
								
							@ -1,6 +1,6 @@
 | 
				
			|||||||
/**
 | 
					/**
 | 
				
			||||||
 * BSDialog4
 | 
					 * BSDialog4
 | 
				
			||||||
 * @version v0.1.6.015 (2023/12/08 22:04)
 | 
					 * @version v0.1.5.038 (2023/11/18 19:40)
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
class BSDialog4 {
 | 
					class BSDialog4 {
 | 
				
			||||||
  constructor() {
 | 
					  constructor() {
 | 
				
			||||||
@ -102,15 +102,15 @@ class BSDialog4 {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	async Clear() {
 | 
						Clear() {
 | 
				
			||||||
		const a = this;
 | 
							const a = this;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		document.querySelectorAll('.modal').forEach(async function(e) {
 | 
							document.querySelectorAll('.modal').forEach(function(e) {
 | 
				
			||||||
			await a.Close(e.getAttribute("id"));
 | 
								$(e).modal('hide');
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	async Close(id) {
 | 
						Close(id) {
 | 
				
			||||||
		const a = this;
 | 
							const a = this;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (id.toString().startsWith(a.#prefix)) {
 | 
							if (id.toString().startsWith(a.#prefix)) {
 | 
				
			||||||
@ -120,28 +120,10 @@ class BSDialog4 {
 | 
				
			|||||||
		const node = document.getElementById(a.#prefix + id);
 | 
							const node = document.getElementById(a.#prefix + id);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (node) {
 | 
							if (node) {
 | 
				
			||||||
			await $(node).modal('hide');
 | 
								$(node).modal('hide');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			node.parentNode.removeChild(node);
 | 
								node.parentNode.removeChild(node);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					 | 
				
			||||||
		if (document.querySelectorAll('.modal').length > 0) {
 | 
					 | 
				
			||||||
			if (!a.#body.classList.contains("modal-open")) {
 | 
					 | 
				
			||||||
				a.#body.classList.add("modal-open");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
				a.#body.style.paddingRight = "17px";
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	async Pop() {
 | 
					 | 
				
			||||||
		const a = this;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		if (document.querySelectorAll('.modal').length > 0) {
 | 
					 | 
				
			||||||
			const id = document.querySelectorAll('.modal')[0].getAttribute("id");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			await a.Close(id);
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	async Update(options) {
 | 
						async Update(options) {
 | 
				
			||||||
@ -437,6 +419,26 @@ class BSDialog4 {
 | 
				
			|||||||
		return (e.trim().length <= 0);
 | 
							return (e.trim().length <= 0);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						#removeBackdrop() {
 | 
				
			||||||
 | 
							const a = this;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if (a.#body.querySelectorAll(".modal-backdrop").length <= 0) {
 | 
				
			||||||
 | 
								return;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if (a.#body.querySelectorAll(".modal").length > 0) {
 | 
				
			||||||
 | 
								return;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							a.#body.querySelectorAll(".modal-backdrop").forEach(function(e){
 | 
				
			||||||
 | 
								e.parentNode.removeChild(e);
 | 
				
			||||||
 | 
							});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							// unlock background
 | 
				
			||||||
 | 
							a.#body.classList.remove("modal-open");
 | 
				
			||||||
 | 
							a.#body.style.overflow = null;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	async #retrieveURL(url) {
 | 
						async #retrieveURL(url) {
 | 
				
			||||||
		return await new Promise(async (resolve) => {
 | 
							return await new Promise(async (resolve) => {
 | 
				
			||||||
			await fetch(url, {
 | 
								await fetch(url, {
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										4
									
								
								bsdialog4.min.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								bsdialog4.min.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user