code stringlengths 24 2.07M | docstring stringlengths 25 85.3k | func_name stringlengths 1 92 | language stringclasses 1
value | repo stringlengths 5 64 | path stringlengths 4 172 | url stringlengths 44 218 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
findChildData = function findChildData( targetParent, rootData ) {
var isRootOfTree = $.isEmptyObject( targetParent );
if ( isRootOfTree ) {
return rootData;
}
if ( rootData === undefined ) {
return false;
}
for ( var i = 0; i < rootData.length; i++ ) {
var potentialMatch = rootData[ i ]... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | findChildData | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
isShiftHeld = function isShiftHeld( e ) {
return e.shiftKey === true;
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | isShiftHeld | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
isKey = function isKey( keyCode ) {
return function compareKeycodes( e ) {
return e.keyCode === keyCode;
};
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | isKey | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
cleanInput = function cleanInput( questionableMarkup ) {
// check for encoding and decode
while ( ENCODED_REGEX.test( questionableMarkup ) ) {
questionableMarkup = $( '<i>' ).html( questionableMarkup ).text();
}
// string completely decoded now encode it
return $( '<i>' ).text( questionableMarkup ).... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | cleanInput | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
Wizard = function( element, options ) {
this.$element = $( element );
this.options = $.extend( {}, $.fn.wizard.defaults, options );
this.options.disablePreviousStep = ( this.$element.attr( 'data-restrict' ) === 'previous' ) ? true : this.options.disablePreviousStep;
this.currentStep = this.options.selectedI... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Wizard | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
InfiniteScroll = function( element, options ) {
this.$element = $( element );
this.$element.addClass( 'infinitescroll' );
this.options = $.extend( {}, $.fn.infinitescroll.defaults, options );
this.curScrollTop = this.$element.scrollTop();
this.curPercentage = this.getPercentage();
this.fetchingData =... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | InfiniteScroll | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
fetch = function() {
var helpers = {
percentage: self.curPercentage,
scrollTop: self.curScrollTop
};
var $loader = $( '<div class="loader"></div>' );
load.append( $loader );
$loader.loader();
if ( self.options.dataSource ) {
self.options.dataSource( helpers, function( res... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | fetch | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
Pillbox = function Pillbox( element, options ) {
this.$element = $( element );
this.$moreCount = this.$element.find( '.pillbox-more-count' );
this.$pillGroup = this.$element.find( '.pill-group' );
this.$addItem = this.$element.find( '.pillbox-add-item' );
this.$addItemWrap = this.$addItem.parent();
th... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Pillbox | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
Repeater = function Repeater( element, options ) {
var self = this;
var $btn;
var currentView;
this.$element = $( element );
this.$canvas = this.$element.find( '.repeater-canvas' );
this.$count = this.$element.find( '.repeater-count' );
this.$end = this.$element.find( '.repeater-end' );
this.$... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Repeater | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
logWarn = function logWarn( msg ) {
if ( window.console && window.console.warn ) {
window.console.warn( msg );
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | logWarn | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
scan = function scan( cont ) {
var keep = [];
cont.children().each( function eachContainerChild() {
var item = $( this );
var pres = item.attr( 'data-preserve' );
if ( pres === 'deep' ) {
item.detach();
keep.push( item );
} else if ( pres === 'shallow' ) {
scan( item );
item.de... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | scan | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
addItem = function addItem( $parent, response ) {
var action;
if ( response ) {
action = ( response.action ) ? response.action : 'append';
if ( action !== 'none' && response.item !== undefined ) {
var $container = ( response.container !== undefined ) ? $( response.container ) : $parent;
$contain... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | addItem | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
callNextInit = function callNextInit( currentViewType, viewTypes, callback ) {
var nextViewType = currentViewType + 1;
if ( nextViewType < viewTypes.length ) {
initViewType.call( this, nextViewType, viewTypes, callback );
} else {
callback();
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | callNextInit | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
initViewType = function initViewType( currentViewtype, viewTypes, callback ) {
if ( viewTypes[ currentViewtype ].initialize ) {
viewTypes[ currentViewtype ].initialize.call( this, {}, function afterInitialize() {
callNextInit.call( this, currentViewtype, viewTypes, callback );
} );
} else {
callN... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | initViewType | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
afterRender = function afterRender( state ) {
var data = state.data || {};
if ( this.infiniteScrollingEnabled ) {
if ( state.viewChanged || state.options.clearInfinite ) {
this.initInfiniteScrolling();
}
this.infiniteScrollPaging( data, state.options );
}
this.$loader.hide().loader( 'pau... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | afterRender | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
doRender = function doRender( state ) {
var data = state.data || {};
if ( this.infiniteScrollingEnabled ) {
// pass empty object because data handled in infiniteScrollPaging method
this.infiniteScrollingCallback( {} );
} else {
this.itemization( data );
this.pagination( data );
}
var se... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | doRender | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
checkIfItemMatchesValue = function checkIfItemMatchesValue( rowIndex ) {
$item = $( this );
data = $item.data( 'item_data' ) || {};
if ( data[ items[ i ].property ] === items[ i ].value ) {
selectItem( $item, items[ i ].selected, rowIndex );
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | checkIfItemMatchesValue | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
selectItem = function selectItem( $itm, slct, index ) {
var $frozenCols;
var select = ( slct !== undefined ) ? slct : true;
if ( select ) {
if ( !force && selectable !== 'multi' ) {
self.list_clearSelectedItems();
}
if ( !$itm.hasClass( 'selected' ) ) {
$itm.addClass( 's... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | selectItem | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
function revertCheckbox( $checkbox ) {
self.list_revertingCheckbox = true;
$checkbox.checkbox( 'toggle' );
delete self.list_revertingCheckbox;
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | revertCheckbox | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
areDifferentColumns = function areDifferentColumns( oldCols, newCols ) {
if ( !newCols ) {
return false;
}
if ( !oldCols || ( newCols.length !== oldCols.length ) ) {
return true;
}
for ( var i = 0, newColsL = newCols.length; i < newColsL; i++ ) {
if ( !oldCols[ i ] ) {
return true;
}... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | areDifferentColumns | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
renderColumn = function renderColumn( $row, rows, rowIndex, columns, columnIndex ) {
var className = columns[ columnIndex ].className;
var content = rows[ rowIndex ][ columns[ columnIndex ].property ];
var $col = $( '<td></td>' );
var width = columns[ columnIndex ]._auto_width;
var property = columns[ c... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | renderColumn | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
renderHeader = function renderHeader( $tr, columns, index ) {
var chevDown = 'glyphicon-chevron-down';
var chevron = '.glyphicon.rlc:first';
var chevUp = 'glyphicon-chevron-up';
var $div = $( '<div class="repeater-list-heading"><span class="glyphicon rlc"></span></div>' );
var checkAllID = ( this.$elemen... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | renderHeader | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
onClickRowRepeaterList = function onClickRowRepeaterList( repeater ) {
var isMulti = repeater.viewOptions.list_selectable === 'multi';
var isActions = repeater.viewOptions.list_actions;
var $repeater = repeater.$element;
if ( !repeater.isDisabled ) {
var $item = $( this );
var index = $( this ).ind... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | onClickRowRepeaterList | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
renderRow = function renderRow( $tbody, rows, index ) {
var $row = $( '<tr></tr>' );
if ( this.viewOptions.list_selectable ) {
$row.data( 'item_data', rows[ index ] );
if ( this.viewOptions.list_selectable !== 'action' ) {
$row.addClass( 'selectable' );
$row.attr( 'tabindex', 0 ); // allow ite... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | renderRow | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
renderTbody = function renderTbody( $table, data ) {
var $tbody = $table.find( 'tbody' );
var $empty;
if ( $tbody.length < 1 ) {
$tbody = $( '<tbody data-container="true"></tbody>' );
$table.append( $tbody );
}
if ( typeof data.error === 'string' && data.error.length > 0 ) {
$empty = $( '<t... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | renderTbody | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
renderThead = function renderThead( $table, data ) {
var columns = data.columns || [];
var $thead = $table.find( 'thead' );
var i;
var length;
var $tr;
if ( this.list_firstRender || areDifferentColumns( this.list_columns, columns ) || $thead.length === 0 ) {
$thead.remove();
// list_noItems ... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | renderThead | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
sizeColumns = function sizeColumns( $tr ) {
var automaticallyGeneratedWidths = [];
var self = this;
var i;
var length;
var newWidth;
var widthTaken;
if ( this.viewOptions.list_columnSizing ) {
i = 0;
widthTaken = 0;
$tr.find( 'th' ).each( function eachTH() {
var $th = $( this );
... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | sizeColumns | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
specialBrowserClass = function specialBrowserClass() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf( 'MSIE ' );
var firefox = ua.indexOf( 'Firefox' );
if ( msie > 0 ) {
return 'ie-' + parseInt( ua.substring( msie + 5, ua.indexOf( '.', msie ) ), 10 );
} else if ( firefox > 0 ) {
ret... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | specialBrowserClass | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
toggleActionsHeaderButton = function toggleActionsHeaderButton() {
var selectedSelector = '.repeater-list-wrapper > table .selected';
var $actionsColumn = this.$element.find( '.table-actions' );
var $selected;
if ( this.viewOptions.list_selectable === 'action' ) {
selectedSelector = '.repeater-list-wra... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | toggleActionsHeaderButton | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
function compareItemIndex() {
if ( n === items[ i ].index ) {
$item = $( this );
return false;
} else {
n++;
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | compareItemIndex | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
function compareItemSelector() {
$item = $( this );
if ( $item.is( items[ i ].selector ) ) {
selectItem( $item, items[ i ].selected );
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | compareItemSelector | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
function selectItem( $itm, select ) {
select = ( select !== undefined ) ? select : true;
if ( select ) {
if ( !force && selectable !== 'multi' ) {
self.thumbnail_clearSelectedItems();
}
$itm.addClass( 'selected' );
} else {
$itm.removeClass( 'selected' );
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | selectItem | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
function fillTemplate( itemData, template ) {
var invalid = false;
function replace() {
var end, start, val;
start = template.indexOf( '{{' );
end = template.indexOf( '}}', start + 2 );
if ( start > -1 && end > -1 ) {
val = $.trim( template.substring( start + 2, end ) );
val = ( itemD... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | fillTemplate | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
function replace() {
var end, start, val;
start = template.indexOf( '{{' );
end = template.indexOf( '}}', start + 2 );
if ( start > -1 && end > -1 ) {
val = $.trim( template.substring( start + 2, end ) );
val = ( itemData[ val ] !== undefined ) ? itemData[ val ] : '';
template = templat... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | replace | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
Scheduler = function Scheduler( element, options ) {
var self = this;
this.$element = $( element );
this.options = $.extend( {}, $.fn.scheduler.defaults, options );
// cache elements
this.$startDate = this.$element.find( '.start-datetime .start-date' );
this.$startTime = this.$element.find( '.start-... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Scheduler | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
_getFormattedDate = function _getFormattedDate( dateObj, dash ) {
var fdate = '';
var item;
fdate += dateObj.getFullYear();
fdate += dash;
item = dateObj.getMonth() + 1; //because 0 indexing makes sense when dealing with months /sarcasm
fdate += ( item < 10 ) ? '0' + item : item;
fdate += dash;
... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | _getFormattedDate | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
_incrementDate = function _incrementDate( start, end, interval, increment ) {
return new Date( start.getTime() + ( INTERVALS[ interval ] * increment ) );
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | _incrementDate | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
function z( n ) {
return ( n < 10 ? '0' : '' ) + n;
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | z | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
Picker = function Picker( element, options ) {
var self = this;
this.$element = $( element );
this.options = $.extend( {}, $.fn.picker.defaults, options );
this.$accept = this.$element.find( '.picker-accept' );
this.$cancel = this.$element.find( '.picker-cancel' );
this.$trigger = this.$element.find(... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Picker | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
_isOffscreen = function _isOffscreen( picker ) {
var windowHeight = Math.max( document.documentElement.clientHeight, window.innerHeight || 0 );
var scrollTop = $( document ).scrollTop();
var popupTop = picker.$popup.offset();
var popupBottom = popupTop.top + picker.$popup.outerHeight( true );
//if the b... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | _isOffscreen | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
_display = function _display( picker ) {
picker.$popup.css( 'visibility', 'hidden' );
_showBelow( picker );
//if part of the popup is offscreen try to show it above
if ( _isOffscreen( picker ) ) {
_showAbove( picker );
//if part of the popup is still offscreen, prefer cutting off the bottom
i... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | _display | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
_showAbove = function _showAbove( picker ) {
picker.$popup.css( 'top', -picker.$popup.outerHeight( true ) + 'px' );
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | _showAbove | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
_showBelow = function _showBelow( picker ) {
picker.$popup.css( 'top', picker.$trigger.outerHeight( true ) + 'px' );
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | _showBelow | javascript | ExactTarget/fuelux | dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/dist/js/fuelux.js | BSD-3-Clause |
logError = function logError( error ) {
if ( window && window.console && window.console.error ) {
window.console.error( error );
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | logError | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
Radio = function Radio( element, options ) {
this.options = $.extend( {}, $.fn.radio.defaults, options );
if ( element.tagName.toLowerCase() !== 'label' ) {
logError( 'Radio must be initialized on the `label` that wraps the `input` element. See https://github.com/ExactTarget/fuelux/blob/master/reference/mark... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Radio | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
Search = function( element, options ) {
this.$element = $( element );
this.$repeater = $( element ).closest( '.repeater' );
this.options = $.extend( {}, $.fn.search.defaults, options );
if ( this.$element.attr( 'data-searchOnKeyPress' ) === 'true' ) {
this.options.searchOnKeyPress = true;
}
this... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Search | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
Selectlist = function( element, options ) {
this.$element = $( element );
this.options = $.extend( {}, $.fn.selectlist.defaults, options );
this.$button = this.$element.find( '.btn.dropdown-toggle' );
this.$hiddenField = this.$element.find( '.hidden-field' );
this.$label = this.$element.find( '.selecte... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Selectlist | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
Spinbox = function Spinbox( element, options ) {
this.$element = $( element );
this.$element.find( '.btn' ).on( 'click', function( e ) {
//keep spinbox from submitting if they forgot to say type="button" on their spinner buttons
e.preventDefault();
} );
this.options = $.extend( {}, $.fn.spinbox.defa... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Spinbox | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
_limitToStep = function _limitToStep( number, step ) {
return Math.round( number / step ) * step;
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | _limitToStep | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
_isUnitLegal = function _isUnitLegal( unit, validUnits ) {
var legalUnit = false;
var suspectUnit = unit.toLowerCase();
$.each( validUnits, function( i, validUnit ) {
validUnit = validUnit.toLowerCase();
if ( suspectUnit === validUnit ) {
legalUnit = true;
return false; //break out of the lo... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | _isUnitLegal | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
_applyLimits = function _applyLimits( value ) {
// if unreadable
if ( isNaN( parseFloat( value ) ) ) {
return value;
}
// if not within range return the limit
if ( value > this.options.max ) {
if ( this.options.cycle ) {
value = this.options.min;
} else {
value = this.options.max;
... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | _applyLimits | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
Tree = function Tree( element, options ) {
this.$element = $( element );
this.options = $.extend( {}, $.fn.tree.defaults, options );
this.$element.attr( 'tabindex', '0' );
if ( this.options.itemSelect ) {
this.$element.on( 'click.fu.tree', '.tree-item', $.proxy( function callSelect( ev ) {
this.s... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Tree | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
disclosedCompleted = function disclosedCompleted() {
$tree.trigger( 'disclosedFolder.fu.tree', $branch.data() );
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | disclosedCompleted | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
closedReported = function closedReported( event, closed ) {
reportedClosed.push( closed );
// jQuery deprecated hide in 3.0. Use hidden instead. Leaving hide here to support previous markup
if ( self.$element.find( ".tree-branch.tree-open:not('.hidden, .hide')" ).length === 0 ) {
self.$element.tri... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | closedReported | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
openReported = function openReported( event, opened ) {
reportedOpened.push( opened );
if ( reportedOpened.length === $openableFolders.length ) {
self.$element.trigger( 'disclosedVisible.fu.tree', {
tree: self.$element,
reportedOpened: reportedOpened
} );
/*
* Unbind th... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | openReported | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
fixFocusability = function fixFocusability( $tree, $branch ) {
/*
When tree initializes on page, the `<ul>` element should have tabindex=0 and all sub-elements should have
tabindex=-1. When focus leaves the tree, whatever the last focused on element was will keep the tabindex=0. The
tree itself will have a ... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | fixFocusability | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
focusIn = function focusIn( $tree, $branch ) {
var $focusCandidate = $branch.find( '.tree-selected:first' );
// if no node is selected, set focus to first visible node
if ( $focusCandidate.length <= 0 ) {
$focusCandidate = $branch.find( 'li:not(".hidden"):first' );
}
setFocus( $tree, $focusCandidat... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | focusIn | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
setFocus = function setFocus( $tree, $branch ) {
fixFocusability( $tree, $branch );
$tree.attr( 'aria-activedescendant', $branch.attr( 'id' ) );
$branch.focus();
$tree.trigger( 'setFocus.fu.tree', $branch );
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | setFocus | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
navigateTree = function navigateTree( $tree, e ) {
if ( e.isDefaultPrevented() || e.isPropagationStopped() ) {
return false;
}
var targetNode = e.originalEvent.target;
var $targetNode = $( targetNode );
var isOpen = $targetNode.hasClass( 'tree-open' );
var handled = false;
// because es5 lacks... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | navigateTree | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
done = function done() {
$tree.trigger( 'keyboardNavigated.fu.tree', e, $targetNode );
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | done | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
ariaSelect = function ariaSelect( $element ) {
$element.attr( 'aria-selected', true );
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | ariaSelect | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
ariaDeselect = function ariaDeselect( $element ) {
$element.attr( 'aria-selected', false );
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | ariaDeselect | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
function styleNodeSelected( $element, $icon ) {
$element.addClass( 'tree-selected' );
if ( $element.data( 'type' ) === 'item' && $icon.hasClass( 'fueluxicon-bullet' ) ) {
$icon.removeClass( 'fueluxicon-bullet' ).addClass( 'glyphicon-ok' ); // make checkmark
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | styleNodeSelected | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
function styleNodeDeselected( $element, $icon ) {
$element.removeClass( 'tree-selected' );
if ( $element.data( 'type' ) === 'item' && $icon.hasClass( 'glyphicon-ok' ) ) {
$icon.removeClass( 'glyphicon-ok' ).addClass( 'fueluxicon-bullet' ); // make bullet
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | styleNodeDeselected | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
function multiSelectSyncNodes( self, clicked, selected ) {
// search for currently selected and add to selected data list if needed
$.each( selected.$elements, function findCurrentlySelected( index, element ) {
var $element = $( element );
if ( $element[ 0 ] !== clicked.$element[ 0 ] ) {
selected.da... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | multiSelectSyncNodes | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
function singleSelectSyncNodes( self, clicked, selected ) {
// element is not currently selected
if ( selected.$elements[ 0 ] !== clicked.$element[ 0 ] ) {
self.deselectAll( self.$element );
styleNodeSelected( clicked.$element, clicked.$icon );
// set event data
selected.eventType = 'selected';
... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | singleSelectSyncNodes | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
findChildData = function findChildData( targetParent, rootData ) {
var isRootOfTree = $.isEmptyObject( targetParent );
if ( isRootOfTree ) {
return rootData;
}
if ( rootData === undefined ) {
return false;
}
for ( var i = 0; i < rootData.length; i++ ) {
var potentialMatch = rootData[ i ]... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | findChildData | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
isShiftHeld = function isShiftHeld( e ) {
return e.shiftKey === true;
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | isShiftHeld | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
isKey = function isKey( keyCode ) {
return function compareKeycodes( e ) {
return e.keyCode === keyCode;
};
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | isKey | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
cleanInput = function cleanInput( questionableMarkup ) {
// check for encoding and decode
while ( ENCODED_REGEX.test( questionableMarkup ) ) {
questionableMarkup = $( '<i>' ).html( questionableMarkup ).text();
}
// string completely decoded now encode it
return $( '<i>' ).text( questionableMarkup ).... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | cleanInput | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
Wizard = function( element, options ) {
this.$element = $( element );
this.options = $.extend( {}, $.fn.wizard.defaults, options );
this.options.disablePreviousStep = ( this.$element.attr( 'data-restrict' ) === 'previous' ) ? true : this.options.disablePreviousStep;
this.currentStep = this.options.selectedI... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Wizard | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
InfiniteScroll = function( element, options ) {
this.$element = $( element );
this.$element.addClass( 'infinitescroll' );
this.options = $.extend( {}, $.fn.infinitescroll.defaults, options );
this.curScrollTop = this.$element.scrollTop();
this.curPercentage = this.getPercentage();
this.fetchingData =... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | InfiniteScroll | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
fetch = function() {
var helpers = {
percentage: self.curPercentage,
scrollTop: self.curScrollTop
};
var $loader = $( '<div class="loader"></div>' );
load.append( $loader );
$loader.loader();
if ( self.options.dataSource ) {
self.options.dataSource( helpers, function( res... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | fetch | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
Pillbox = function Pillbox( element, options ) {
this.$element = $( element );
this.$moreCount = this.$element.find( '.pillbox-more-count' );
this.$pillGroup = this.$element.find( '.pill-group' );
this.$addItem = this.$element.find( '.pillbox-add-item' );
this.$addItemWrap = this.$addItem.parent();
th... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Pillbox | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
Repeater = function Repeater( element, options ) {
var self = this;
var $btn;
var currentView;
this.$element = $( element );
this.$canvas = this.$element.find( '.repeater-canvas' );
this.$count = this.$element.find( '.repeater-count' );
this.$end = this.$element.find( '.repeater-end' );
this.$... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | Repeater | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
logWarn = function logWarn( msg ) {
if ( window.console && window.console.warn ) {
window.console.warn( msg );
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | logWarn | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
scan = function scan( cont ) {
var keep = [];
cont.children().each( function eachContainerChild() {
var item = $( this );
var pres = item.attr( 'data-preserve' );
if ( pres === 'deep' ) {
item.detach();
keep.push( item );
} else if ( pres === 'shallow' ) {
scan( item );
item.de... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | scan | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
addItem = function addItem( $parent, response ) {
var action;
if ( response ) {
action = ( response.action ) ? response.action : 'append';
if ( action !== 'none' && response.item !== undefined ) {
var $container = ( response.container !== undefined ) ? $( response.container ) : $parent;
$contain... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | addItem | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
callNextInit = function callNextInit( currentViewType, viewTypes, callback ) {
var nextViewType = currentViewType + 1;
if ( nextViewType < viewTypes.length ) {
initViewType.call( this, nextViewType, viewTypes, callback );
} else {
callback();
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | callNextInit | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
initViewType = function initViewType( currentViewtype, viewTypes, callback ) {
if ( viewTypes[ currentViewtype ].initialize ) {
viewTypes[ currentViewtype ].initialize.call( this, {}, function afterInitialize() {
callNextInit.call( this, currentViewtype, viewTypes, callback );
} );
} else {
callN... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | initViewType | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
afterRender = function afterRender( state ) {
var data = state.data || {};
if ( this.infiniteScrollingEnabled ) {
if ( state.viewChanged || state.options.clearInfinite ) {
this.initInfiniteScrolling();
}
this.infiniteScrollPaging( data, state.options );
}
this.$loader.hide().loader( 'pau... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | afterRender | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
doRender = function doRender( state ) {
var data = state.data || {};
if ( this.infiniteScrollingEnabled ) {
// pass empty object because data handled in infiniteScrollPaging method
this.infiniteScrollingCallback( {} );
} else {
this.itemization( data );
this.pagination( data );
}
var se... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | doRender | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
checkIfItemMatchesValue = function checkIfItemMatchesValue( rowIndex ) {
$item = $( this );
data = $item.data( 'item_data' ) || {};
if ( data[ items[ i ].property ] === items[ i ].value ) {
selectItem( $item, items[ i ].selected, rowIndex );
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | checkIfItemMatchesValue | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
selectItem = function selectItem( $itm, slct, index ) {
var $frozenCols;
var select = ( slct !== undefined ) ? slct : true;
if ( select ) {
if ( !force && selectable !== 'multi' ) {
self.list_clearSelectedItems();
}
if ( !$itm.hasClass( 'selected' ) ) {
$itm.addClass( 's... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | selectItem | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
function revertCheckbox( $checkbox ) {
self.list_revertingCheckbox = true;
$checkbox.checkbox( 'toggle' );
delete self.list_revertingCheckbox;
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | revertCheckbox | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
areDifferentColumns = function areDifferentColumns( oldCols, newCols ) {
if ( !newCols ) {
return false;
}
if ( !oldCols || ( newCols.length !== oldCols.length ) ) {
return true;
}
for ( var i = 0, newColsL = newCols.length; i < newColsL; i++ ) {
if ( !oldCols[ i ] ) {
return true;
}... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | areDifferentColumns | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
renderColumn = function renderColumn( $row, rows, rowIndex, columns, columnIndex ) {
var className = columns[ columnIndex ].className;
var content = rows[ rowIndex ][ columns[ columnIndex ].property ];
var $col = $( '<td></td>' );
var width = columns[ columnIndex ]._auto_width;
var property = columns[ c... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | renderColumn | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
renderHeader = function renderHeader( $tr, columns, index ) {
var chevDown = 'glyphicon-chevron-down';
var chevron = '.glyphicon.rlc:first';
var chevUp = 'glyphicon-chevron-up';
var $div = $( '<div class="repeater-list-heading"><span class="glyphicon rlc"></span></div>' );
var checkAllID = ( this.$elemen... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | renderHeader | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
onClickRowRepeaterList = function onClickRowRepeaterList( repeater ) {
var isMulti = repeater.viewOptions.list_selectable === 'multi';
var isActions = repeater.viewOptions.list_actions;
var $repeater = repeater.$element;
if ( !repeater.isDisabled ) {
var $item = $( this );
var index = $( this ).ind... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | onClickRowRepeaterList | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
renderRow = function renderRow( $tbody, rows, index ) {
var $row = $( '<tr></tr>' );
if ( this.viewOptions.list_selectable ) {
$row.data( 'item_data', rows[ index ] );
if ( this.viewOptions.list_selectable !== 'action' ) {
$row.addClass( 'selectable' );
$row.attr( 'tabindex', 0 ); // allow ite... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | renderRow | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
renderTbody = function renderTbody( $table, data ) {
var $tbody = $table.find( 'tbody' );
var $empty;
if ( $tbody.length < 1 ) {
$tbody = $( '<tbody data-container="true"></tbody>' );
$table.append( $tbody );
}
if ( typeof data.error === 'string' && data.error.length > 0 ) {
$empty = $( '<t... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | renderTbody | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
renderThead = function renderThead( $table, data ) {
var columns = data.columns || [];
var $thead = $table.find( 'thead' );
var i;
var length;
var $tr;
if ( this.list_firstRender || areDifferentColumns( this.list_columns, columns ) || $thead.length === 0 ) {
$thead.remove();
// list_noItems ... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | renderThead | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
sizeColumns = function sizeColumns( $tr ) {
var automaticallyGeneratedWidths = [];
var self = this;
var i;
var length;
var newWidth;
var widthTaken;
if ( this.viewOptions.list_columnSizing ) {
i = 0;
widthTaken = 0;
$tr.find( 'th' ).each( function eachTH() {
var $th = $( this );
... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | sizeColumns | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
specialBrowserClass = function specialBrowserClass() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf( 'MSIE ' );
var firefox = ua.indexOf( 'Firefox' );
if ( msie > 0 ) {
return 'ie-' + parseInt( ua.substring( msie + 5, ua.indexOf( '.', msie ) ), 10 );
} else if ( firefox > 0 ) {
ret... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | specialBrowserClass | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
toggleActionsHeaderButton = function toggleActionsHeaderButton() {
var selectedSelector = '.repeater-list-wrapper > table .selected';
var $actionsColumn = this.$element.find( '.table-actions' );
var $selected;
if ( this.viewOptions.list_selectable === 'action' ) {
selectedSelector = '.repeater-list-wra... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | toggleActionsHeaderButton | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
function compareItemIndex() {
if ( n === items[ i ].index ) {
$item = $( this );
return false;
} else {
n++;
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | compareItemIndex | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
function compareItemSelector() {
$item = $( this );
if ( $item.is( items[ i ].selector ) ) {
selectItem( $item, items[ i ].selected );
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | compareItemSelector | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
function selectItem( $itm, select ) {
select = ( select !== undefined ) ? select : true;
if ( select ) {
if ( !force && selectable !== 'multi' ) {
self.thumbnail_clearSelectedItems();
}
$itm.addClass( 'selected' );
} else {
$itm.removeClass( 'selected' );
}
} | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | selectItem | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
function fillTemplate( itemData, template ) {
var invalid = false;
function replace() {
var end, start, val;
start = template.indexOf( '{{' );
end = template.indexOf( '}}', start + 2 );
if ( start > -1 && end > -1 ) {
val = $.trim( template.substring( start + 2, end ) );
val = ( itemD... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | fillTemplate | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
function replace() {
var end, start, val;
start = template.indexOf( '{{' );
end = template.indexOf( '}}', start + 2 );
if ( start > -1 && end > -1 ) {
val = $.trim( template.substring( start + 2, end ) );
val = ( itemData[ val ] !== undefined ) ? itemData[ val ] : '';
template = templat... | setValue() sets the Placard triggering DOM element's display value
@param {String} the value to be displayed
@param {Boolean} If you want to explicitly suppress the application
of ellipsis, pass `true`. This would typically only be
done from internal functions (like `applyEllipsis`)
that want to avoid c... | replace | javascript | ExactTarget/fuelux | reference/dist/js/fuelux.js | https://github.com/ExactTarget/fuelux/blob/master/reference/dist/js/fuelux.js | BSD-3-Clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.