Lines 31-36
Link Here
|
31 |
// Collapse pending items table |
31 |
// Collapse pending items table |
32 |
function pendingCollapse() { |
32 |
function pendingCollapse() { |
33 |
$("#pendingcollapserow").remove(); |
33 |
$("#pendingcollapserow").remove(); |
|
|
34 |
$("#pendingt tr").show(); |
34 |
$("#pendingt tbody.filterclass tr:gt(" + (rowsToCollapse-1) + ")").hide(); |
35 |
$("#pendingt tbody.filterclass tr:gt(" + (rowsToCollapse-1) + ")").hide(); |
35 |
$("#pendingt").before("<p id=\"pendingcollapserow\">" + _("Only the first ") + rowsToCollapse + _(" items are displayed.") + "<a href=\"javascript:pendingExpand();\">" + _("Click here to show all ") + rowCountPending + _(" items") + "<\/a>.<\/p>"); |
36 |
$("#pendingt").before("<p id=\"pendingcollapserow\">" + _("Only the first ") + rowsToCollapse + _(" items are displayed.") + "<a href=\"javascript:pendingExpand();\">" + _("Click here to show all ") + rowCountPending + _(" items") + "<\/a>.<\/p>"); |
36 |
|
37 |
|
Lines 40-45
Link Here
|
40 |
function pendingExpand() { |
41 |
function pendingExpand() { |
41 |
$("#pendingcollapserow").remove(); |
42 |
$("#pendingcollapserow").remove(); |
42 |
$("#pendingt tr").show(); |
43 |
$("#pendingt tr").show(); |
|
|
44 |
$("#pendingt tbody.filterclass tr.orderfound").remove(); |
43 |
$("#pendingt").before("<p id=\"pendingcollapserow\">" + rowCountPending + _(" items are displayed.") + "<a href=\"javascript:pendingCollapse();\">" + _("Click here to show only the first ") + rowsToCollapse + _(" items") + "<\/a>.<\/p>"); |
45 |
$("#pendingt").before("<p id=\"pendingcollapserow\">" + rowCountPending + _(" items are displayed.") + "<a href=\"javascript:pendingCollapse();\">" + _("Click here to show only the first ") + rowsToCollapse + _(" items") + "<\/a>.<\/p>"); |
44 |
} |
46 |
} |
45 |
|
47 |
|
Lines 114-120
Link Here
|
114 |
function clearFilters() { |
116 |
function clearFilters() { |
115 |
$("#nothingfoundrow").remove(); |
117 |
$("#nothingfoundrow").remove(); |
116 |
$("#pendingt tbody.filterclass tr").show(); |
118 |
$("#pendingt tbody.filterclass tr").show(); |
117 |
$("#pendingt tbody.filterclass tr.orderfound").remove(); |
119 |
//$("#pendingt tbody.filterclass tr.orderfound").remove(); |
118 |
pendingExpand(); |
120 |
pendingExpand(); |
119 |
} |
121 |
} |
120 |
|
122 |
|
121 |
- |
|
|