Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mynote = "hi guys"; // edit as you wish
- $('#itemfilter').val('case key');
- function filterResults(search,page) {
- $("#itemlist").html('<img src="http://csgolounge.com/img/load.gif" id="loading" style="margin: 0.75em 2%">');
- $.ajax({
- url: 'ajax/tradeCsRightTmp.php',
- type: 'POST',
- data: $(".srch").serialize()+"&search="+search+"&page="+page,
- success: function(data) {
- $("#itemlist").html(data);
- setTimeout(function() {
- $( "#itemlist .item" ).each(function( index ) {
- console.log($(this).children()[0].alt);
- if( $(this).children()[0].alt.indexOf('Prototype') == -1 && $('.right').children().size() < 8)
- $(this).click()
- }); }, 100);
- $('#notes').val(mynote);
- }
- });
- }
- filterResults();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement