From b8efb35918349a716fe804b23fde27a105e43d15 Mon Sep 17 00:00:00 2001 From: ozhozh Date: Fri, 4 Sep 2009 20:44:14 +0000 Subject: [PATCH] Make insert.js independent from tablesorter.js git-svn-id: http://yourls.googlecode.com/svn/trunk@119 12232710-3e20-11de-b438-597f59cd7555 --- js/insert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/insert.js b/js/insert.js index c2139d9..3f6d815 100644 --- a/js/insert.js +++ b/js/insert.js @@ -3,7 +3,7 @@ $(document).ready(function(){ $('#add-url, #add-keyword').keyup(function(e){ if (e.keyCode == 13) {add();} } ); reset_url(); $('#new_url_form').attr('action', 'javascript:add();'); - if ($("#tblUrl tr.nourl_found").length != 1) { + if ($("#tblUrl").tablesorter && $("#tblUrl tr.nourl_found").length != 1) { $("#tblUrl").tablesorter({ sortList:[[2,1]], // Sort on column #3 (numbering starts at 0) headers: { 5: {sorter: false} }, // no sorter on column #6 -- 2.45.0