GRAYBYTE WORDPRESS FILE MANAGER7509

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/wp-file-manager/lib/js/ui/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/wp-file-manager/lib/js/ui//toast.js
/**
 * @class  elFinder toast
 * 
 * This was created inspired by the toastr. Thanks to developers of toastr.
 * CodeSeven/toastr: http://johnpapa.net <https://github.com/CodeSeven/toastr>
 *
 * @author Naoki Sawada
 **/
jQuery.fn.elfindertoast = function(opts, fm) {
	"use strict";
	var defOpts = Object.assign({
		mode: 'success', // or 'info', 'warning' and 'error'
		msg: '',
		showMethod: 'fadeIn', //fadeIn, slideDown, and show are built into jQuery
		showDuration: 300,
		showEasing: 'swing', //swing and linear are built into jQuery
		onShown: undefined,
		hideMethod: 'fadeOut',
		hideDuration: 1500,
		hideEasing: 'swing',
		onHidden: undefined,
		timeOut: 3000,
		extNode: undefined,
		button: undefined,
		width: undefined
	}, jQuery.isPlainObject(fm.options.uiOptions.toast.defaults)? fm.options.uiOptions.toast.defaults : {});
	return this.each(function() {
		opts = Object.assign({}, defOpts, opts || {});
		
		var self = jQuery(this),
			show = function(notm) {
				self.stop();
				fm.toFront(self);
				self[opts.showMethod]({
					duration: opts.showDuration,
					easing: opts.showEasing,
					complete: function() {
						opts.onShown && opts.onShown();
						if (!notm && opts.timeOut) {
							rmTm = setTimeout(rm, opts.timeOut);
						}
					}
				});
			},
			rm = function() {
				self[opts.hideMethod]({
					duration: opts.hideDuration,
					easing: opts.hideEasing,
					complete: function() {
						opts.onHidden && opts.onHidden();
						self.remove();
					}
				});
			},
			rmTm;
		
		self.on('click', function(e) {
			e.stopPropagation();
			e.preventDefault();
			rmTm && clearTimeout(rmTm);
			opts.onHidden && opts.onHidden();
			self.stop().remove();
		}).on('mouseenter mouseleave', function(e) {
			if (opts.timeOut) {
				rmTm && clearTimeout(rmTm);
				rmTm = null;
				if (e.type === 'mouseenter') {
					show(true);
				} else {
					rmTm = setTimeout(rm, opts.timeOut);
				}
			}
		}).hide().addClass('toast-' + opts.mode).append(jQuery('<div class="elfinder-toast-msg"></div>').html(opts.msg.replace(/%([a-zA-Z0-9]+)%/g, function(m, m1) {
			return fm.i18n(m1);
		})));
		
		if (opts.extNode) {
			self.append(opts.extNode);
		}

		if (opts.button) {
			self.append(
				jQuery('<button class="ui-button ui-widget ui-state-default ui-corner-all elfinder-tabstop"></button>')
				.append(jQuery('<span class="ui-button-text"></span>').text(fm.i18n(opts.button.text)))
				.on('mouseenter mouseleave', function(e) { 
					jQuery(this).toggleClass('ui-state-hover', e.type == 'mouseenter');
				})
				.on('click', opts.button.click || function(){})
			);
		}

		if (opts.width) {
			self.css('max-width', opts.width);
		}
		
		show();
	});
};

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:21
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:21
giriqfky / giriqfky
0644
button.js
4.12 KB
February 08 2021 12:11:18
giriqfky / giriqfky
0644
contextmenu.js
21.454 KB
September 01 2020 13:09:26
giriqfky / giriqfky
0644
cwd.js
87.651 KB
December 28 2021 14:26:10
giriqfky / giriqfky
0644
dialog.js
26.202 KB
July 21 2021 08:53:50
giriqfky / giriqfky
0644
fullscreenbutton.js
0.619 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
navbar.js
5.218 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
navdock.js
4.365 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
overlay.js
0.946 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
panel.js
0.546 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
path.js
5.219 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
places.js
16.202 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
searchbutton.js
10.046 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
sortbutton.js
3.662 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
stat.js
3.396 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
toast.js
2.626 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
toolbar.js
9.861 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
tree.js
40.601 KB
December 28 2021 14:26:10
giriqfky / giriqfky
0644
uploadButton.js
1.047 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
viewbutton.js
0.752 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
workzone.js
1.421 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF