File Editor
Directories:
.. (Back)
Files:
button.js
contextmenu.js
cwd.js
dialog.js
fullscreenbutton.js
navbar.js
navdock.js
overlay.js
panel.js
path.js
places.js
searchbutton.js
sortbutton.js
stat.js
toast.js
toolbar.js
tree.js
uploadButton.js
viewbutton.js
workzone.js
Create New File
Create
Edit File: fullscreenbutton.js
/** * @class elFinder toolbar button to switch full scrren mode. * * @author Naoki Sawada **/ jQuery.fn.elfinderfullscreenbutton = function(cmd) { "use strict"; return this.each(function() { var button = jQuery(this).elfinderbutton(cmd), icon = button.children('.elfinder-button-icon'), tm; cmd.change(function() { tm && cancelAnimationFrame(tm); tm = requestAnimationFrame(function() { var fullscreen = cmd.value; icon.addClass('elfinder-button-icon-fullscreen').toggleClass('elfinder-button-icon-unfullscreen', fullscreen); cmd.className = fullscreen? 'unfullscreen' : ''; }); }); }); };
Save Changes
Rename File
Rename