WebContent/js/explore/spaces.js
/**
 * Wraps up a permission and it's value for display in a table. Includes onclicks for the images.
 * @param perm The permission type to display (job, user, solver, bench, space)
 * @param add The value for the add permission for the type
 * @param remove The value for the remove permission for the type
 * @returns HTML representing a row in a table display the type and it's permission values
 */
Wraps up a permission and it's value for display in a table. Includes onclicks for the images.
@param perm The permission type to display (job, user, solver, bench, space)
@param add The value for the add permission for the type
@param remove The value for the remove permission for the type
@returns HTML representing a row in a table display the type and it's permission values
Wraps up a permission and it ' s value for display in a table . Includes onclicks for the images . @param perm The permission type to display ( job user solver bench space ) @param add The value for the add permission for the type @param remove The value for the remove permission for the type @returns HTML representing a row in a table display the type and it ' s permission values
function wrapPermRow(perm, add, remove) {
	var yes = $('<span>')
	.css('margin', 'auto')
	.addClass('ui-icon ui-icon-check')
	.toHTMLString();
	var no = $('<span>')
	.css('margin', 'auto')
	.addClass('ui-icon ui-icon-closethick')
	.toHTMLString();
	return "<tr><td>" + perm + "</td><td class='add'>" + (add ? yes : no) + "</td><td class='remove'>" + (remove ? yes : no) + "</td></tr>";
}
function wrapPermRow ( perm , add , remove ) { var yes = $ ( '<span>' ) . css ( 'margin' , 'auto' ) . addClass ( 'ui-icon ui-icon-check' ) . toHTMLString ( ) ; var no = $ ( '<span>' ) . css ( 'margin' , 'auto' ) . addClass ( 'ui-icon ui-icon-closethick' ) . toHTMLString ( ) ; return "<tr><td>" + perm + "</td><td class='add'>" + ( add ? yes : no ) + "</td><td class='remove'>" + ( remove ? yes : no ) + "</td></tr>" ; }
Wraps up a permission and it's value for display in a table.
Wraps up a permission and it ' s value for display in a table .