|
Lines 59-64
$.fn.selectTabByID = function (tabID) {
Link Here
|
| 59 |
$("a[href='" + tabID + "']", $(this)).tab("show"); |
59 |
$("a[href='" + tabID + "']", $(this)).tab("show"); |
| 60 |
}; |
60 |
}; |
| 61 |
|
61 |
|
|
|
62 |
function togglePanel(node) { |
| 63 |
var panel = node.nextAll(); |
| 64 |
if (panel.is(":visible")) { |
| 65 |
node.addClass("collapsed") |
| 66 |
.removeClass("expanded") |
| 67 |
.attr("title", __("Click to expand this section")); |
| 68 |
panel.hide(); |
| 69 |
} else { |
| 70 |
node.addClass("expanded") |
| 71 |
.removeClass("collapsed") |
| 72 |
.attr("title", __("Click to collapse this section")); |
| 73 |
panel.show(); |
| 74 |
panel.find("input, select, textarea").eq(0).focus(); |
| 75 |
} |
| 76 |
} |
| 77 |
|
| 62 |
$(document).ready(function () { |
78 |
$(document).ready(function () { |
| 63 |
//check if sticky element is stuck, if so add floating class |
79 |
//check if sticky element is stuck, if so add floating class |
| 64 |
if ($(".sticky").length) { |
80 |
if ($(".sticky").length) { |
|
Lines 438-443
$(document).ready(function () {
Link Here
|
| 438 |
$(".output.next").prepend(__("Next")); |
454 |
$(".output.next").prepend(__("Next")); |
| 439 |
$(".output.last").prepend(__("Last")); |
455 |
$(".output.last").prepend(__("Last")); |
| 440 |
} |
456 |
} |
|
|
457 |
|
| 458 |
$(".collapsed,.expanded").on("click", function (e) { |
| 459 |
e.preventDefault(); |
| 460 |
togglePanel($(this)); |
| 461 |
}); |
| 441 |
}); |
462 |
}); |
| 442 |
|
463 |
|
| 443 |
function removeLastBorrower() { |
464 |
function removeLastBorrower() { |
| 444 |
- |
|
|