Skip to content

Commit

Permalink
make it work on xlarge
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Maturen committed Mar 20, 2014
1 parent daff008 commit 9009eb6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -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;}
form#manipulateKeywords label { position:absolute; top:4px; left:4px; color:#ccc; cursor:text;}
16 changes: 8 additions & 8 deletions hooks/all.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,27 @@ 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','<?php echo $inline_keywords_background_colour; ?>');
jQuery('.ResourcePanelLarge, .ResourcePanel, .ResourcePanelSmall').css('border-color','');
jQuery('.chosen .ResourcePanelLarge, .chosen .ResourcePanel, .chosen .ResourcePanelSmall').css('border-color','<?php echo $inline_keywords_background_colour; ?>');
}
});

jQuery('body').on('click', '#clearSelectedResourceButton', function() {

jQuery('.chosen').removeClass('chosen');
jQuery('#newKeywordsForSelectedResources').val('');
jQuery('.ResourcePanel, .ResourcePanelSmall').css('border-color','');
jQuery('.chosen .ResourcePanel, .chosen .ResourcePanelSmall').css('border-color','<?php echo $inline_keywords_background_colour; ?>');
jQuery('.ResourcePanelLarge, .ResourcePanel, .ResourcePanelSmall').css('border-color','');
jQuery('.chosen .ResourcePanelLarge, .chosen .ResourcePanel, .chosen .ResourcePanelSmall').css('border-color','<?php echo $inline_keywords_background_colour; ?>');
});

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','<?php echo $inline_keywords_background_colour; ?>');
jQuery('.ResourcePanelShellLarge, .ResourcePanelShell, .ResourcePanelShellSmall').addClass('chosen');
jQuery('.ResourcePanelLarge, .ResourcePanel, .ResourcePanelSmall').css('border-color','');
jQuery('.chosen .ResourcePanelLarge, .chosen .ResourcePanel, .chosen .ResourcePanelSmall').css('border-color','<?php echo $inline_keywords_background_colour; ?>');
});

jQuery('body').on('click', '#archiveResourcesButton', function(){
Expand Down
2 changes: 1 addition & 1 deletion inline_keywords.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9009eb6

Please sign in to comment.