文件操作 - admin.js
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/forteagencynew/public_html/wp-content/plugins/WP-Highlevel/assets/JS/admin.js
编辑文件内容
/** * Javascript & jQuery to add pubs and toggle visibility of UI elements * * @author Asentech * @uses jQuery */ // Initialize UI & setup click handlers (function($) { $(document).ready(function() { //Enable add row when required field is populated $( '.widefat' ).on( 'change', '.pn_required', function() { if( '' == $(this).val() ) { $( '.widefat .dmcss_row_add_button' ).attr( 'disabled', 'disabled' ); } else { $( '.widefat .dmcss_row_add_button' ).removeAttr( 'disabled' ); } }); // Click hanlder to add additional table rows ( category lists) $(document).on( 'click', '.dmcss_row_add_button', function() { dmcss_new_row_add(); }); }) // Function to Add additional publications function dmcss_new_row_add(){ // Create our new html to insert var currentIndex = $(".category-table tbody tr:last-child").attr("data-index"); alert(currentIndex); return false; var position = $( '.widefat tbody tr' ).length; var alt = $( '.widefat .dmcss_pub' ).length + position; var html = $( '.widefat .dmcss_new_row' ).parent().html().replace( /%i%/g, position ); // Remove old Add buttons $( '.widefat .dmcss_row_add_button' ).remove(); $( '.widefat input' ).removeClass( 'pn_required' ); $( '.widefat input' ).unbind( 'change' ); // Insert new html $( '.widefat .dmcss_new_row:last' ).after(html); if( alt % 2 === 0 ) { $( '.widefat .dmcss_new_row:last' ).addClass( 'alternate' ); } // Put our cursor in a convenient place $( '.widefat .dmcss_new_row:last .dmcss_row_focus' )[0].focus(); } })(jQuery);
修改文件时间
将文件时间修改为当前时间的前一年
删除文件