pull/501/head
Julian Kühnel 4 years ago
commit d203844e33

@ -38,7 +38,7 @@ $.fn.dataTable.Api.register( 'columns().order()', function ( dir ) {
var a = [];
for ( var i=0, ien=columns.length ; i<ien ; i++ ) {
a.push( [ columns[i], $.isArray(dir) ? dir[i] : dir ] );
a.push( [ columns[i], Array.isArray(dir) ? dir[i] : dir ] );
}
new $.fn.dataTable.Api( settings ).order( a );

@ -43,7 +43,7 @@
name = '';
}
if ($.isPlainObject(data) || $.isArray(data)) {
if ($.isPlainObject(data) || Array.isArray(data)) {
$.each(data, function(idx, val) {
if (name === '') {
flattenJson(val, idx, flattened);

@ -43,7 +43,12 @@
return;
}
var options = dtSettings.oInit.conditionalPageLength || $.fn.dataTable.defaults.conditionalPageLength;
var options = dtSettings.oInit.conditionalPageLength || $.fn.dataTable.defaults.conditionalPageLength,
lengthMenu = dtSettings.aLengthMenu || $.fn.dataTable.defaults.lengthMenu,
lengthMenuValues = Array.isArray(lengthMenu[0]) ? lengthMenu[0] : lengthMenu;
lengthMenuValues = lengthMenuValues.filter(function(n) { return n > 0 });
var smallestLength = Math.min.apply(Math, lengthMenuValues);
if ($.isPlainObject(options) || options === true) {
var config = $.isPlainObject(options) ? options : {},
@ -55,7 +60,7 @@
size = api.rows({search:'applied'}).count();
if (e instanceof $.Event) {
if (pages <= 1) {
if (pages <= 1 && size <= smallestLength) {
if (config.style === 'fade') {
$paging.stop().fadeTo(speed, 0);
}
@ -72,7 +77,7 @@
}
}
}
else if (pages <= 1) {
else if (pages <= 1 && size <= smallestLength) {
if (config.style === 'fade') {
$paging.css('opacity', 0);
}

@ -58,8 +58,8 @@ $.fn.dataTable.LengthLinks = function ( inst ) {
}
var menu = settings.aLengthMenu;
var lang = menu.length===2 && $.isArray(menu[0]) ? menu[1] : menu;
var lens = menu.length===2 && $.isArray(menu[0]) ? menu[0] : menu;
var lang = menu.length===2 && Array.isArray(menu[0]) ? menu[1] : menu;
var lens = menu.length===2 && Array.isArray(menu[0]) ? menu[0] : menu;
var out = $.map( lens, function (el, i) {
return el == api.page.len() ?

@ -46,9 +46,9 @@ function highlight( body, table )
table.columns().every( function () {
var column = this;
column.nodes().flatten().to$().unhighlight({ className: 'column_highlight' });
column.nodes().flatten().to$().highlight( $.trim( column.search() ).split(/\s+/), { className: 'column_highlight' } );
column.nodes().flatten().to$().highlight( column.search().trim().split(/\s+/), { className: 'column_highlight' } );
} );
body.highlight( $.trim( table.search() ).split(/\s+/) );
body.highlight( table.search().trim().split(/\s+/) );
}
}

@ -25,5 +25,27 @@
"oAria": {
"sSortAscending": ": تفعيل لترتيب العمود تصاعدياً",
"sSortDescending": ": تفعيل لترتيب العمود تنازلياً"
},
"select": {
"rows": {
"_": "%d قيمة محددة",
"0": "",
"1": "1 قيمة محددة"
}
},
"buttons": {
"print": "طباعة",
"colvis": "الأعمدة الظاهرة",
"copy": "نسخ إلى الحافظة",
"copyTitle": "نسخ",
"copyKeys": "زر <i>ctrl</i> أو <i>\u2318</i> + <i>C</i> من الجدول<br>ليتم نسخها إلى الحافظة<br><br>للإلغاء اضغط على الرسالة أو اضغط على زر الخروج.",
"copySuccess": {
"_": "%d قيمة نسخت",
"1": "1 قيمة نسخت"
},
"pageLength": {
"-1": "اظهار الكل",
"_": "إظهار %d أسطر"
}
}
}

@ -7,24 +7,127 @@
*/
{
"sEmptyTable": "No data available in table",
"sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
"sInfoEmpty": "Showing 0 to 0 of 0 entries",
"sInfoFiltered": "(filtered from _MAX_ total entries)",
"sInfoThousands": ",",
"sLengthMenu": "Show _MENU_ entries",
"sLoadingRecords": "Loading...",
"sProcessing": "Processing...",
"sSearch": "Search:",
"sZeroRecords": "No matching records found",
"oPaginate": {
"sFirst": "First",
"sLast": "Last",
"sNext": "Next",
"sPrevious": "Previous"
},
"oAria": {
"sSortAscending": ": activate to sort column ascending",
"sSortDescending": ": activate to sort column descending"
"emptyTable": "No data available in table",
"info": "Showing _START_ to _END_ of _TOTAL_ entries",
"infoEmpty": "Showing 0 to 0 of 0 entries",
"infoFiltered": "(filtered from _MAX_ total entries)",
"infoThousands": ",",
"lengthMenu": "Show _MENU_ entries",
"loadingRecords": "Loading...",
"processing": "Processing...",
"search": "Search:",
"zeroRecords": "No matching records found",
"thousands": ",",
"paginate": {
"first": "First",
"last": "Last",
"next": "Next",
"previous": "Previous"
},
"aria": {
"sortAscending": ": activate to sort column ascending",
"sortDescending": ": activate to sort column descending"
},
"autoFill": {
"cancel": "Cancel",
"fill": "Fill all cells with <i>%d</i>",
"fillHorizontal": "Fill cells horizontally",
"fillVertical": "Fill cells vertically"
},
"buttons": {
"collection": "Collection <span class='ui-button-icon-primary ui-icon ui-icon-triangle-1-s'/>",
"colvis": "Column Visibility",
"colvisRestore": "Restore visibility",
"copy": "Copy",
"copyKeys": "Press ctrl or u2318 + C to copy the table data to your system clipboard.<br><br>To cancel, click this message or press escape.",
"copySuccess": {
"1": "Copied 1 row to clipboard",
"_": "Copied %d rows to clipboard"
},
"copyTitle": "Copy to Clipboard",
"csv": "CSV",
"excel": "Excel",
"pageLength": {
"-1": "Show all rows",
"1": "Show 1 row",
"_": "Show %d rows"
},
"pdf": "PDF",
"print": "Print"
},
"searchBuilder": {
"add": "Add Condition",
"button": {
"0": "Search Builder",
"_": "Search Builder (%d)"
},
"clearAll": "Clear All",
"condition": "Condition",
"conditions": {
"date": {
"after": "After",
"before": "Before",
"between": "Between",
"empty": "Empty",
"equals": "Equals",
"not": "Not",
"notBetween": "Not Between",
"notEmpty": "Not Empty"
},
"moment": {
"after": "After",
"before": "Before",
"between": "Between",
"empty": "Empty",
"equals": "Equals",
"not": "Not",
"notBetween": "Not Between",
"notEmpty": "Not Empty"
},
"number": {
"between": "Between",
"empty": "Empty",
"equals": "Equals",
"gt": "Greater Than",
"gte": "Greater Than Equal To",
"lt": "Less Than",
"lte": "Less Than Equal To",
"not": "Not",
"notBetween": "Not Between",
"notEmpty": "Not Empty"
},
"string": {
"contains": "Contains",
"empty": "Empty",
"endsWith": "Ends With",
"equals": "Equals",
"not": "Not",
"notEmpty": "Not Empty",
"startsWith": "Starts With"
}
},
"data": "Data",
"deleteTitle": "Delete filtering rule",
"leftTitle": "Outdent Criteria",
"logicAnd": "And",
"logicOr": "Or",
"rightTitle": "Indent Criteria",
"title": {
"0": "Search Builder",
"_": "Search Builder (%d)"
},
"value": "Value"
},
"searchPanes": {
"clearMessage": "Clear All",
"collapse": {
"0": "SearchPanes",
"_": "SearchPanes (%d)"
},
"count": "{total}",
"countFiltered": "{shown} ({total})",
"emptyPanes": "No SearchPanes",
"loadMessage": "Loading SearchPanes",
"title": "Filters Active - %d"
}
}

@ -2,23 +2,90 @@
* Indonesian translation
* @name Indonesian
* @anchor Indonesian
* @author Cipto Hadi
* @author Cipto Hadi, Ardeman
* @lcid id
*/
{
"sEmptyTable": "Tidak ada data yang tersedia pada tabel ini",
"sProcessing": "Sedang memproses...",
"sLengthMenu": "Tampilkan _MENU_ entri",
"sZeroRecords": "Tidak ditemukan data yang sesuai",
"sInfo": "Menampilkan _START_ sampai _END_ dari _TOTAL_ entri",
"sInfoEmpty": "Menampilkan 0 sampai 0 dari 0 entri",
"sInfoFiltered": "(disaring dari _MAX_ entri keseluruhan)",
"sSearch": "Cari:",
"oPaginate": {
"sFirst": "Pertama",
"sPrevious": "Sebelumnya",
"sNext": "Selanjutnya",
"sLast": "Terakhir"
"emptyTable": "Tidak ada data yang tersedia pada tabel ini",
"info": "Menampilkan _START_ sampai _END_ dari _TOTAL_ entri",
"infoEmpty": "Menampilkan 0 sampai 0 dari 0 entri",
"infoFiltered": "(disaring dari _MAX_ entri keseluruhan)",
"infoThousands": "'",
"lengthMenu": "Tampilkan _MENU_ entri",
"loadingRecords": "Sedang memuat...",
"processing": "Sedang memproses...",
"search": "Cari:",
"zeroRecords": "Tidak ditemukan data yang sesuai",
"thousands": "'",
"paginate": {
"first": "Pertama",
"last": "Terakhir",
"next": "Selanjutnya",
"previous": "Sebelumnya"
},
"aria": {
"sortAscending": ": aktifkan untuk mengurutkan kolom ke atas",
"sortDescending": ": aktifkan untuk mengurutkan kolom menurun"
},
"autoFill": {
"cancel": "Batalkan",
"fill": "Isi semua sel dengan <i>%d</i>",
"fillHorizontal": "Isi sel secara horizontal",
"fillVertical": "Isi sel secara vertikal"
},
"buttons": {
"collection": "Kumpulan <span class='ui-button-icon-primary ui-icon ui-icon-triangle-1-s'/>",
"colvis": "Visibilitas Kolom",
"colvisRestore": "Kembalikan visibilitas",
"copy": "Salin",
"copyKeys": "Tekan ctrl atau u2318 + C untuk menyalin tabel ke papan klip.<br><br>To membatalkan, klik pesan ini atau tekan esc.",
"copySuccess": {
"1": "1 baris disalin ke papan klip",
"_": "%d baris disalin ke papan klip"
},
"copyTitle": "Salin ke Papan klip",
"csv": "CSV",
"excel": "Excel",
"pageLength": {
"-1": "Tampilkan semua baris",
"1": "Tampilkan 1 baris",
"_": "Tampilkan %d baris"
},
"pdf": "PDF",
"print": "Cetak"
},
"searchBuilder": {
"add": "Tambah Kondisi",
"button": {
"0": "Cari Builder",
"_": "Cari Builder (%d)"
},
"clearAll": "Bersihkan Semua",
"condition": "Kondisi",
"data": "Data",
"deleteTitle": "Hapus filter",
"leftTitle": "Ke Kiri",
"logicAnd": "Dan",
"logicOr": "Atau",
"rightTitle": "Ke Kanan",
"title": {
"0": "Cari Builder",
"_": "Cari Builder (%d)"
},
"value": "Nilai"
},
"searchPanes": {
"clearMessage": "Bersihkan Semua",
"collapse": {
"0": "SearchPanes",
"_": "SearchPanes (%d)"
},
"count": "{total}",
"countFiltered": "{shown} ({total})",
"emptyPanes": "Tidak Ada SearchPanes",
"loadMessage": "Memuat SearchPanes",
"title": "Filter Aktif - %d"
}
}

@ -69,7 +69,7 @@ var _unique = 0;
// Function to encapsulate code that is common to both the string and number
// ordering plug-ins.
var _setup = function ( values ) {
if ( ! $.isArray( values ) ) {
if ( ! Array.isArray( values ) ) {
values = [ values ];
}

@ -25,8 +25,8 @@
"date-euro-pre": function ( a ) {
var x;
if ( $.trim(a) !== '' ) {
var frDatea = $.trim(a).split(' ');
if ( a.trim() !== '' ) {
var frDatea = a.trim().split(' ');
var frTimea = (undefined != frDatea[1]) ? frDatea[1].split(':') : [00,00,00];
var frDatea2 = frDatea[0].split('/');
x = (frDatea2[2] + frDatea2[1] + frDatea2[0] + frTimea[0] + frTimea[1] + ((undefined != frTimea[2]) ? frTimea[2] : 0)) * 1;

@ -40,7 +40,7 @@ $.fn.dataTable.moment = function ( format, locale, reverseEmpties ) {
}
// Strip out surrounding white space
d = $.trim( d );
d = d.trim();
}
// Null and empty values are acceptable
@ -62,7 +62,7 @@ $.fn.dataTable.moment = function ( format, locale, reverseEmpties ) {
}
// Strip out surrounding white space
d = $.trim( d );
d = d.trim();
}
return !moment(d, format, locale, true).isValid() ?

@ -21,7 +21,7 @@ var persianSort = [ 'آ', 'ا', 'ب', 'پ', 'ت', 'ث', 'ج', 'چ', 'ح', 'خ',
'س', 'ش', 'ص', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'و', 'ه', 'ی', 'ي' ];
function GetUniCode(source) {
source = $.trim(source);
source = source.trim();
var result = '';
var i, index;
for (i = 0; i < source.length; i++) {

@ -18,7 +18,7 @@ jQuery.fn.dataTableExt.aTypes.unshift( function ( sData )
{
sData = typeof sData.replace == 'function' ?
sData.replace( /<[\s\S]*?>/g, "" ) : sData;
sData = $.trim(sData);
sData = sData.trim();
var sValidFirstChars = "0123456789-";
var sValidChars = "0123456789.";

Loading…
Cancel
Save