diff options
Diffstat (limited to 'plugins/CoreHome/templates/datatable.js')
-rw-r--r-- | plugins/CoreHome/templates/datatable.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreHome/templates/datatable.js b/plugins/CoreHome/templates/datatable.js index a19e99424c..a36943ac07 100644 --- a/plugins/CoreHome/templates/datatable.js +++ b/plugins/CoreHome/templates/datatable.js @@ -605,11 +605,11 @@ dataTable.prototype = if( urlToLink.match("javascript:") ) { - $(this).html( '<a href="#" onClick="' + urlToLink.replace("javascript:","") + '">' + imgToPrepend + $(this).html() + '</a>'); + $(this).prepend(imgToPrepend).wrap('<a href="#" onclick="' + urlToLink.replace("javascript:","") + '"></a>'); } else { - $(this).html( '<a target="_blank" href="' + urlToLink + '">' + imgToPrepend + $(this).html() + '</a>'); + $(this).prepend(imgToPrepend).wrap('<a target="_blank" href="' + urlToLink + '"></a>'); } }); } |