This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//add this css | |
#footable_parent_NT_ID .foo-table[id^='footable_']:not(.ninja_has_filter) tbody,#footable_parent_NT_ID .foo-table[id^='footable_']:not(.ninja_has_filter) tfoot,#footable_parent_NT_ID .foo-table[id^='footable_']:not(.ninja_has_filter) .footable-header { | |
display: none !important; | |
} | |
// add this javascript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('fluentform/date_i18n', function ($strings) { | |
$strings = array( | |
'months' => [ | |
'shorthand' => [ | |
__('Jan', 'fluentform'), | |
__('Fev', 'fluentform'), | |
__('Mar', 'fluentform'), | |
__('Avr', 'fluentform'), | |
__('Mai', 'fluentform'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function runAll (){ | |
// write all your custom javascript here | |
} | |
runAll(); | |
$table.on('after.ft.filtering', function() { | |
runAll(); | |
}); | |
$table.on('after.ft.paging', function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// define your name attributes here | |
var radioField = "---"; | |
var firstNfield = "---"; | |
var surNField = "---"; | |
var showHere ="---"; | |
$(":input").bind("keyup change", function(e) { | |
var title = jQuery("input[data-name='"+radioField+"']:checked").val(); | |
var firstName = jQuery("input[data-name='"+firstNfield+"']").val(); | |
var surname = jQuery("input[data-name='"+surNField+"']").val(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php global $current_user; wp_get_current_user(); ?> | |
<?php | |
if ( is_user_logged_in() ) { | |
$getEmail = $current_user->user_email; | |
$getID = $current_user->user_id; | |
echo do_shortcode('[ninja_tables id="580" filter_column="name" filter=" ' . $getID . '" ] '); | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* jQuery Rowspanizer Plugin (Modified) v0.2 | |
* https://github.com/marcosesperon/jquery.rowspanizer.js | |
* | |
* Copyright 2011, 2015 Marcos Esperón | |
* Released under the MIT license | |
* | |
* https://github.com/jquery-boilerplate/boilerplate/ | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
var myData = jQuery('.foo-table td.from').text(); | |
jQuery('.fluentform input.to').val(myData); | |
// jQuery('.fluentform input.to').attr('readonly','1'); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('ninja_table_raw_sql_placeholders', function ($value) { | |
$value['{name}'] = 'kamrul'; | |
return $value; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('.readonly').attr('readonly', 'true'); |