|
Lines 18-24
function formatstr(str, col) {
Link Here
|
| 18 |
|
18 |
|
| 19 |
// http://stackoverflow.com/questions/14859281/select-tab-by-name-in-jquery-ui-1-10-0/16550804#16550804 |
19 |
// http://stackoverflow.com/questions/14859281/select-tab-by-name-in-jquery-ui-1-10-0/16550804#16550804 |
| 20 |
$.fn.tabIndex = function () { |
20 |
$.fn.tabIndex = function () { |
| 21 |
return $(this).parent().find(this).index() - 1; |
21 |
return $(this).parent().children('div').index(this); |
| 22 |
}; |
22 |
}; |
| 23 |
$.fn.selectTabByID = function (tabID) { |
23 |
$.fn.selectTabByID = function (tabID) { |
| 24 |
$(this).tabs("option", "active", $(tabID).tabIndex()); |
24 |
$(this).tabs("option", "active", $(tabID).tabIndex()); |
| 25 |
- |
|
|