Skip to content

Commit

Permalink
Scroll to latest edited doplet in droplets overview
Browse files Browse the repository at this point in the history
  • Loading branch information
WebDesignWorx authored Mar 10, 2023
1 parent 0d09109 commit 4bbb617
Showing 1 changed file with 32 additions and 26 deletions.
58 changes: 32 additions & 26 deletions wbce/modules/droplets/backend_body.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,36 @@
if ( typeof jQuery != 'undefined' ) {
jQuery(document).ready(function($) {
if ( typeof $.tablesorter != 'undefined' ) {
$("#myTable").tablesorter({
textExtraction: function(node) {
var attr = $(node).attr('data-sort-timestamp');
if (typeof attr !== 'undefined' && attr !== false) {
return attr;
}
return $(node).text();
} ,
headers: {
0: {sorter: false},
4: {sorter: false}
if (typeof jQuery != 'undefined') {
jQuery(document).ready(function ($) {
if (typeof $.tablesorter != 'undefined') {
$("#myTable").tablesorter({
textExtraction: function (node) {
var attr = $(node).attr('data-sort-timestamp');
if (typeof attr !== 'undefined' && attr !== false) {
return attr;
}
return $(node).text();
},
headers: {
0: {sorter: false},
4: {sorter: false}
}
});
}
});
}

$('*[data-redirect-location]').on( "click", function () {
var uri = $(this).data('redirect-location');
if ($(this).data('new-window')) {
window.open(uri, '_blank');
} else {
window.location = uri;

// scroll to Last Modified Filter
// also: scroll to Type Section after deleting a plugin
if ($(".hilite")[0]){
$('html, body').animate({
scrollTop: $('.hilite').offset().top -250
}, 'slow');
}

$('*[data-redirect-location]').on("click", function () {
var uri = $(this).data('redirect-location');
if ($(this).data('new-window')) {
window.open(uri, '_blank');
} else {
window.location = uri;
}
});
});
});
}


0 comments on commit 4bbb617

Please sign in to comment.