Skip to content

Commit

Permalink
fixed bug that prevented other plugins to work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmaturen committed May 20, 2012
1 parent 9e9a7e2 commit 8e669fc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions hooks/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ function HookInline_keywordsSearchAdditionalheaderjs()
{ ?>
<script type='text/javascript'>
jQuery(document).ready(function() {
jQuery('.ResourcePanelShell, .ResourcePanelShellSmall').on('click', function() {
jQuery(this).toggleClass('chosen');
jQuery('.ResourcePanel, .ResourcePanelSmall').css('border-color','');
jQuery('.chosen .ResourcePanel, .chosen .ResourcePanelSmall').css('border-color','<?php echo $inline_keywords_background_colour; ?>');
jQuery('.ResourcePanelShell, .ResourcePanelShellSmall').on('click', function(event) {
if(!(event.originalEvent.srcElement instanceof HTMLImageElement )){
//console.log(event.originalEvent.srcElement instance of HTMLImageElement);
jQuery(this).toggleClass('chosen');
jQuery('.ResourcePanel, .ResourcePanelSmall').css('border-color','');
jQuery('.chosen .ResourcePanel, .chosen .ResourcePanelSmall').css('border-color','<?php echo $inline_keywords_background_colour; ?>');
}
});

jQuery('.ResourcePanelShell, .ResourcePanelShellSmall').on('click','a',function(event){event.stopPropagation();});

jQuery('#clearSelectedResourceButton').on('click', function() {
jQuery('.chosen').removeClass('chosen');
jQuery('#newKeywordsForSelectedResources').val('');
Expand Down

0 comments on commit 8e669fc

Please sign in to comment.