custom.js
5 years ago
folders.js
5 years ago
folders.min.js
5 years ago
jquery.mcustomscrollbar.min.js
5 years ago
jquery.mousewheel.min.js
5 years ago
jquery.ui.touch-punch.min.js
5 years ago
jstree.js
5 years ago
jstree.min.js
5 years ago
media.js
5 years ago
new-media.js
5 years ago
page-post-media.js
5 years ago
page-post-media.min.js
5 years ago
replace-file-name.js
5 years ago
replace-media.js
5 years ago
select2.min.js
6 years ago
spectrum.min.js
6 years ago
replace-file-name.js
28 lines
| 1 | (function (factory) { |
| 2 | "use strict"; |
| 3 | if (typeof define === 'function' && define.amd) { |
| 4 | define(['jquery'], factory); |
| 5 | } |
| 6 | else if(typeof module !== 'undefined' && module.exports) { |
| 7 | module.exports = factory(require('jquery')); |
| 8 | } |
| 9 | else { |
| 10 | factory(jQuery); |
| 11 | } |
| 12 | }(function ($, undefined) { |
| 13 | $(document).ready(function(){ |
| 14 | var appendString = "<div class='folders-undo-notification' id='name-change-success'><div class='folders-undo-body' style='padding: 0'><a href='javascript:;' class='close-undo-box'><span></span></a><div class='folders-undo-header' style='padding: 0'></div></div></div>"; |
| 15 | $("body").append(appendString); |
| 16 | $(document).on("click", ".folder-replace-checkbox", function(){ |
| 17 | if($(this).is(":checked")) { |
| 18 | $(this).closest("td").find("a.update-name-with-title").addClass("show"); |
| 19 | } else { |
| 20 | $(this).closest("td").find("a.update-name-with-title").removeClass("show"); |
| 21 | } |
| 22 | }); |
| 23 | $(document).on("click", ".close-undo-box", function(e){ |
| 24 | e.preventDefault(); |
| 25 | $("#name-change-success").removeClass("active"); |
| 26 | }); |
| 27 | }); |
| 28 | })); |