Archived
la til lightbox hook for evenet table
This commit is contained in:
1 parent
3258bfcb72
commit
7387817106
1 file changed
+4
-1
+4
-1
@@ -113,7 +113,7 @@ $j(function()
|
|||||||
|
|
||||||
var modal_not_match = Array(/wp-admin/);
|
var modal_not_match = Array(/wp-admin/);
|
||||||
|
|
||||||
$j(".content .post,#header [href]").live('click',function(e)
|
$j(".content .post,#header [href],.event-table tr").live('click',function(e)
|
||||||
{
|
{
|
||||||
preModal = window.location.href;
|
preModal = window.location.href;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@@ -123,6 +123,9 @@ $j(".content .post,#header [href]").live('click',function(e)
|
|||||||
else
|
else
|
||||||
href = $j(this).find("[href]").attr('href');
|
href = $j(this).find("[href]").attr('href');
|
||||||
|
|
||||||
|
if(!href)
|
||||||
|
return;
|
||||||
|
|
||||||
for(var i = 0; i < modal_match.length; i++)
|
for(var i = 0; i < modal_match.length; i++)
|
||||||
if(href.match(modal_match[i]))
|
if(href.match(modal_match[i]))
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in new issue
Block a user