Sha256: b4cc76f4a897666b94fb4be736669fbbe523c0ac7a214fc1c489f352662d928c
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 Bytes
Contents
$(function(){ $('.input-rename').keypress(function (e) { if (e.which == 13) { ELFinder.rename(this); e.preventDefault(); } }); $('#input-create').keypress(function (e) { if (e.which == 13) { if (e.ctrlKey) ELFinder.create('folder'); // creating a folder on ctrl + enter else ELFinder.create('file'); // creating a file on enter e.preventDefault(); } }); $( ".draggable" ).draggable({ revert: true, helper: 'clone' }); $( ".droppable" ).droppable({ hoverClass: "ui-state-active", drop: function( event, ui ) { ELFinder.move(ui.draggable.attr('data-path'), $(this).attr('data-path')); } }); if(right_edge = $("#right_edge").offset()) $('html, body').animate({ scrollLeft: right_edge.left }, 0); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
el-finder-0.1.0 | assets/ui.js |