define(['/assets/js/views/app2/custom_checkbox_and_radio.js','jquery'],function(){
return function(){
$('.at_filters label').click(function(){
$(this).siblings('.checkbox').click();
});
$('input[name="filt"]').on('change',function(){
if(this.value=='all'){
if($(this).is(':checked')) $('input[name="filt"]').attr('checked', true);
else $('input[name="filt"]').attr('checked', false);
} else {
$('input[name="filt"][value="all"]').attr('checked', false);
}
var show = [];
var left = true;
$('input[name="filt"]:checked').each(function(){
show.push($(this).val());
});
var year = '';
var month = '';
$('.at_timeline_list li').each(function(){
if($(this).hasClass('yearheader')){
if(year && year.data('delete')) year.slideUp();
else if(year) year.slideDown();
year = $(this);
year.data('delete', true);
} else if($(this).hasClass('monthheader')){
if(month && month.data('delete')) month.slideUp();
else if(month) month.slideDown();
month = $(this);
month.data('delete', true);
} else if($(this).hasClass('event')){
if(show.indexOf($(this).data('type'))!=-1){
$(this).removeClass('left').removeClass('right');
$(this).addClass(left?'left':'right');
left=!left;
if($(this).css('display')!='list-item') $(this).slideDown();
year.data('delete',false);
month.data('delete',false);
} else {
if($(this).css('display')=='list-item') $(this).slideUp();
}
}
});
if(year && year.data('delete')) year.slideUp();
else if(year) year.slideDown();
if(month && month.data('delete')) month.slideUp();
else if(month) month.slideDown();
});
//Account Search
$('input.at_search').keypress(function(e){
if(e.which == 13){
$(this).siblings('.magnificon').click();
}
});
$('.at_searchwrap .magnificon').click(function(){
if(!$('.at_search').val()) return;
pf.ajax({
url:'/app/accounttimeline',
data:{searchfor:$('.at_search').val()},
type:'post',
dataType:'json',
success:function(res){
if(res.success && res.body){
if(res.loadAccount){
pf.apps.loadApp({
appurl:'/app/accounttimeline',
postdata:{accountkey:res.loadAccount},
refresh:new Date()
});
} else pf.dialog(res.body, 'Search Results');
} else {
pf.dialog('There has been an issue processing your request. I apologize for the inconvenience, please try again.', 'Error');
}
}
});
});
setupLabel();
};
});
$('input[name="filt"]').on('change',function(){
if(this.value=='all'){
if($(this).is(':checked')) $('input[name="filt"]').attr('checked', true);
else $('input[name="filt"]').attr('checked', false);
} else {
$('input[name="filt"][value="all"]').attr('checked', false);
}
<ul class="at_filters">
<li>
<span class="checkbox">
<input type="checkbox" name="filt" value="all" checked/>
</span><label>All</label>
</li>
<li>
<span class="checkbox">
<input type="checkbox" name="filt" value="transaction" checked/>
</span><label>Transactions</label>
</li>
<li>
<span class="checkbox">
<input type="checkbox" name="filt" value="statement" checked/>
</span><label>Statements</label>
</li>
<li>
<span class="checkbox">
<input type="checkbox" name="filt" value="note" checked/>
</span><label>Notes</label>
</li>
<li>
<span class="checkbox">
<input type="checkbox" name="filt" value="comment" checked/>
</span><label>Task Comments</label>
</li>
<li>
<span class="checkbox">
<input type="checkbox" name="filt" value="personal_payments" checked/>
</span><label>Personal Payments</label>
</li>
</ul>
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Fellow title is reserved for select members who demonstrate sustained contributions, industry leadership, and outstanding performance. We will announce the experts being inducted into the Experts Exchange Fellowship during the annual Expert Awards, but unlike other awards, Fellow is a lifelong status. This title may not be given every year if there are no obvious candidates.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.