Sha256: d450d2a725f622fbdc5d90c493eba24c6815e7407d3deab8857cb3fe486aa7d6

Contents?: true

Size: 1.11 KB

Versions: 28

Compression:

Stored size: 1.11 KB

Contents


/**
 * Generate the node required for the processing node
 *  @param {object} oSettings dataTables settings object
 *  @returns {node} Processing element
 *  @memberof DataTable#oApi
 */
function _fnFeatureHtmlProcessing ( oSettings )
{
	var nProcessing = document.createElement( 'div' );
	
	if ( !oSettings.aanFeatures.r )
	{
		nProcessing.id = oSettings.sTableId+'_processing';
	}
	nProcessing.innerHTML = oSettings.oLanguage.sProcessing;
	nProcessing.className = oSettings.oClasses.sProcessing;
	oSettings.nTable.parentNode.insertBefore( nProcessing, oSettings.nTable );
	
	return nProcessing;
}


/**
 * Display or hide the processing indicator
 *  @param {object} oSettings dataTables settings object
 *  @param {bool} bShow Show the processing indicator (true) or not (false)
 *  @memberof DataTable#oApi
 */
function _fnProcessingDisplay ( oSettings, bShow )
{
	if ( oSettings.oFeatures.bProcessing )
	{
		var an = oSettings.aanFeatures.r;
		for ( var i=0, iLen=an.length ; i<iLen ; i++ )
		{
			an[i].style.visibility = bShow ? "visible" : "hidden";
		}
	}

	$(oSettings.oInstance).trigger('processing', [oSettings, bShow]);
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
classiccms-0.7.5 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.7.4 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.7.3 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.7.2 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.7.1 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.7.0 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.6.9 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.6.8 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.6.7 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.6.6 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.6.5 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.6.4 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.6.3 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.6.2 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.6.1 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.6.0 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.5.17 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.5.16 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.5.15 lib/classiccms/public/admin/datatables/src/core/core.processing.js
classiccms-0.5.14 lib/classiccms/public/admin/datatables/src/core/core.processing.js