phpmyadmin/js/src/functions/Grid/Cell.js
Piyush Vijay 2bd0206f22
Some code structuring for database related files.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-08-21 06:10:48 +05:30

19 lines
399 B
JavaScript

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Return value of a cell in a table.
*/
export function PMA_getCellValue (td) {
var $td = $(td);
if ($td.is('.null')) {
return '';
} else if ((! $td.is('.to_be_saved')
|| $td.is('.set'))
&& $td.data('original_data')
) {
return $td.data('original_data');
} else {
return $td.text();
}
}