芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/rentandbuyrealty.com/public/assets/js/custom/formatter.js
function imageFormatter( value, row ) { var svg_clr_setting = row.svg_clr; if ( svg_clr_setting != null && svg_clr_setting == 1 ) { var imageUrl = value; if ( value ) { if ( imageUrl.split( '.' ).pop() === 'svg' ) { return '
'; } else { console.log( value ); return '
'; } } } else { return ( value !== '' ) ? '
' : ''; } } function sub_category( value, row ) { return '
' + value + ' Sub Categories
'; } function custom_fields( value, row ) { var rootUrl = window.location.protocol + '//' + window.location.host; return '
' + value + ' Custom Fields
'; } function status_switch( value, row ) { status = value == "1" ? "checked" : ""; return '
'; } function premium_status_switch( value, row ) { status = value == "1" ? "checked" : ""; return '
'; } function badge( value, row ) { if ( value == "review" ) { badgClass = 'primary'; badgeText = 'Under Review'; } if ( value == "approve" ) { badgClass = 'success'; badgeText = 'Approved'; } if ( value == "reject" ) { badgClass = 'danger'; badgeText = 'Rejected'; } return '
' + badgeText + '
'; } function property_type( value ) { if ( value == 0 ) { return '
Sell
'; } else if ( value == 1 ) { return '
Rent
'; } else if ( value == 2 ) { return "Sold"; } else if ( value == 3 ) { return "Rented"; } } function status_badge( value, row ) { if ( value == '0' ) { badgClass = 'danger'; badgeText = 'OFF'; } else { badgClass = 'success'; badgeText = 'ON'; } return '
' + badgeText + '
'; } function user_status_badge( value, row ) { if ( value == '0' ) { badgClass = 'danger'; badgeText = 'Inacive'; } else { badgClass = 'success'; badgeText = 'Active'; } return '
' + badgeText + '
'; } function style_app( value, row ) { return '
'; } function filters( value ) { if ( value == "most_liked" ) { filter = "Most Liked"; } else if ( value == "price_criteria" ) { filter = "Price Criteria"; } else if ( value == "category_criteria" ) { filter = "Category Criteria"; } else if ( value == "most_viewed" ) { filter = "Most Viewed"; } return filter; } function adminFile( value, row ) { return "
View File < /a>"; } function appFile( value, row ) { return "
View File < /a>"; }