diff --git a/css/style.css b/css/style.css index 34649b8..6b3840f 100644 --- a/css/style.css +++ b/css/style.css @@ -1,5 +1,6 @@ .ResourcePanel {margin:5px;} .ResourcePanelSmall {margin:5px;} -.chosen .ResourcePanel, .chosen .ResourcePanelSmall{border:5px solid hotPink; margin:1px 0;} +.ResourcePanelLarge {margin:5px;} +.chosen .ResourcePanelLarge, .chosen .ResourcePanel, .chosen .ResourcePanelSmall{border:5px solid hotPink; margin:1px 0;} form#manipulateKeywords p { position:relative } -form#manipulateKeywords label { position:absolute; top:4px; left:4px; color:#ccc; cursor:text;} \ No newline at end of file +form#manipulateKeywords label { position:absolute; top:4px; left:4px; color:#ccc; cursor:text;} diff --git a/hooks/all.php b/hooks/all.php index c0b9ad7..43ec8ab 100644 --- a/hooks/all.php +++ b/hooks/all.php @@ -35,12 +35,12 @@ function HookInline_keywordsAllAdditionalheaderjs() } }); - jQuery('body').on('click', '.ResourcePanelShell, .ResourcePanelShellSmall', function(event) { + jQuery('body').on('click', '.ResourcePanelShellLarge, .ResourcePanelShell, .ResourcePanelShellSmall', 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',''); + jQuery('.ResourcePanelLarge, .ResourcePanel, .ResourcePanelSmall').css('border-color',''); + jQuery('.chosen .ResourcePanelLarge, .chosen .ResourcePanel, .chosen .ResourcePanelSmall').css('border-color',''); } }); @@ -48,14 +48,14 @@ function HookInline_keywordsAllAdditionalheaderjs() jQuery('.chosen').removeClass('chosen'); jQuery('#newKeywordsForSelectedResources').val(''); - jQuery('.ResourcePanel, .ResourcePanelSmall').css('border-color',''); - jQuery('.chosen .ResourcePanel, .chosen .ResourcePanelSmall').css('border-color',''); + jQuery('.ResourcePanelLarge, .ResourcePanel, .ResourcePanelSmall').css('border-color',''); + jQuery('.chosen .ResourcePanelLarge, .chosen .ResourcePanel, .chosen .ResourcePanelSmall').css('border-color',''); }); jQuery('body').on('click', '#selectAllResourceButton', function() { - jQuery('.ResourcePanelShell, .ResourcePanelShellSmall').addClass('chosen'); - jQuery('.ResourcePanel, .ResourcePanelSmall').css('border-color',''); - jQuery('.chosen .ResourcePanel, .chosen .ResourcePanelSmall').css('border-color',''); + jQuery('.ResourcePanelShellLarge, .ResourcePanelShell, .ResourcePanelShellSmall').addClass('chosen'); + jQuery('.ResourcePanelLarge, .ResourcePanel, .ResourcePanelSmall').css('border-color',''); + jQuery('.chosen .ResourcePanelLarge, .chosen .ResourcePanel, .chosen .ResourcePanelSmall').css('border-color',''); }); jQuery('body').on('click', '#archiveResourcesButton', function(){ diff --git a/inline_keywords.yaml b/inline_keywords.yaml index 7af6984..d707049 100644 --- a/inline_keywords.yaml +++ b/inline_keywords.yaml @@ -1,6 +1,6 @@ name: inline_keywords author: Aaron T. Maturen -version: 0.75 +version: 0.8 desc: Enable Editing Fields on Search Result Page info_url: https://github.com/aaronmaturen/rs_inline_keywords config_url: /plugins/inline_keywords/pages/setup.php