mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
Build modified streamline images
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
This commit is contained in:
Vendored
Executable
+55
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* Search through a table looking for a given string (optionally the search
|
||||
* can be restricted to a single column). The return value is an array with
|
||||
* the data indexes (from DataTables' internal data store) for any rows which
|
||||
* match.
|
||||
*
|
||||
* @name fnFindCellRowIndexes
|
||||
* @summary Search for data, returning row indexes
|
||||
* @author [Allan Jardine](http://sprymedia.co.uk)
|
||||
*
|
||||
* @param {string} sSearch Data to search for
|
||||
* @param {integer} [iColumn=null] Limit search to this column
|
||||
* @returns {array} Array of row indexes with this data
|
||||
*
|
||||
* @example
|
||||
* $(document).ready(function() {
|
||||
* var table = $('#example').dataTable();
|
||||
*
|
||||
* var a = table.fnFindCellRowIndexes( '1.7' ); // Search all columns
|
||||
*
|
||||
* var b = table.fnFindCellRowIndexes( '1.7', 3 ); // Search only column 3
|
||||
* } );
|
||||
*/
|
||||
|
||||
jQuery.fn.dataTableExt.oApi.fnFindCellRowIndexes = function ( oSettings, sSearch, iColumn )
|
||||
{
|
||||
var
|
||||
i,iLen, j, jLen, val,
|
||||
aOut = [], aData,
|
||||
columns = oSettings.aoColumns;
|
||||
|
||||
for ( i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
|
||||
{
|
||||
aData = oSettings.aoData[i]._aData;
|
||||
|
||||
if ( iColumn === undefined )
|
||||
{
|
||||
for ( j=0, jLen=columns.length ; j<jLen ; j++ )
|
||||
{
|
||||
val = this.fnGetData(i, j);
|
||||
|
||||
if ( val == sSearch )
|
||||
{
|
||||
aOut.push( i );
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (this.fnGetData(i, iColumn) == sSearch )
|
||||
{
|
||||
aOut.push( i );
|
||||
}
|
||||
}
|
||||
|
||||
return aOut;
|
||||
};
|
||||
Reference in New Issue
Block a user