Commit 33dad8f7 authored by Liam Morland's avatar Liam Morland
Browse files

Coding standards

parent 693a5dcd
/*** uw_virtual_site_homepage form ***/ /*** uw_virtual_site_homepage form ***/
#uw-virtual-site-homepage-node-form #edit-options { #uw-virtual-site-homepage-node-form #edit-options {
display: none; display: none;
} }
#edit-actions-top { #edit-actions-top {
display: none; display: none;
} }
/* Biblio settings */ /* Biblio settings */
.citation-example-wrapper { .citation-example-wrapper {
margin-top: 10px; margin-top: 10px;
background-color: white; background-color: white;
padding-left: 10px; padding-left: 10px;
padding-top: 5px; padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
padding-right: 10px; padding-right: 10px;
} }
#edit-field-uw-homepage-banners .image-widget-data input[id*="remove-button"] { #edit-field-uw-homepage-banners .image-widget-data input[id*="remove-button"] {
display: none; display: none;
} }
/**
* @file
*/
(function ($) { (function ($) {
Drupal.behaviors.uw_virtual_site_homepage = { Drupal.behaviors.uw_virtual_site_homepage = {
...@@ -5,8 +9,8 @@ ...@@ -5,8 +9,8 @@
attach: function (context, settings) { attach: function (context, settings) {
// RT#615890: Fixing extra space at the end of some names. // RT#615890: Fixing extra space at the end of some names.
$(document).ready(function() { $(document).ready(function () {
$('.biblio-entry span.biblio-authors').each(function() { $('.biblio-entry span.biblio-authors').each(function () {
str = $(this).html(); str = $(this).html();
str = str.replace(/\s*$/,""); str = str.replace(/\s*$/,"");
$(this).html(str); $(this).html(str);
...@@ -14,10 +18,10 @@ ...@@ -14,10 +18,10 @@
}); });
// Get all descriptions for the links in homepage banners. // Get all descriptions for the links in homepage banners.
$('#edit-field-uw-homepage-banners #field-uw-homepage-banners-values .field-name-field-uw-homepage-banners-link .description').each(function(index) { $('#edit-field-uw-homepage-banners #field-uw-homepage-banners-values .field-name-field-uw-homepage-banners-link .description').each(function (index) {
// If we are on the Enter a link that you image will go to description, move it. // If we are on the Enter a link that you image will go to description, move it.
if($(this).html() == "Enter a link that your image will go to.") { if ($(this).html() == "Enter a link that your image will go to.") {
// Move the div to under the URL link textbox. // Move the div to under the URL link textbox.
$(this).appendTo($(this).parent().find('.link-field-url')); $(this).appendTo($(this).parent().find('.link-field-url'));
...@@ -25,7 +29,7 @@ ...@@ -25,7 +29,7 @@
}); });
// If there is a biblio header remove the [ and ]. // If there is a biblio header remove the [ and ].
if($('#content #biblio-header').length > 0) { if ($('#content #biblio-header').length > 0) {
// Remove the [ and ] from the biblio sort links. // Remove the [ and ] from the biblio sort links.
var oldhtml = $('#content #biblio-header').html(); var oldhtml = $('#content #biblio-header').html();
...@@ -34,19 +38,19 @@ ...@@ -34,19 +38,19 @@
$('#content #biblio-header').html(newhtml); $('#content #biblio-header').html(newhtml);
} }
if($('.biblio-filter-status').length > 0) { if ($('.biblio-filter-status').length > 0) {
$('#biblio-search-form').append($('.biblio-filter-status')); $('#biblio-search-form').append($('.biblio-filter-status'));
} }
// If there is a twitter feed in the sidebar, set the max-height to the height of the content, only if the content height is larger than the preset max-height. // If there is a twitter feed in the sidebar, set the max-height to the height of the content, only if the content height is larger than the preset max-height.
if($('.twitter-sidebar-wrapper').length > 0) { if ($('.twitter-sidebar-wrapper').length > 0) {
if($('#content').length > 0) { if ($('#content').length > 0) {
if ($('#content').height() > $('.twitter-sidebar-wrapper').css('max-height').replace('px', '')) { if ($('#content').height() > $('.twitter-sidebar-wrapper').css('max-height').replace('px', '')) {
$('.twitter-sidebar-wrapper').css('max-height', $('#content').height() + 'px'); $('.twitter-sidebar-wrapper').css('max-height', $('#content').height() + 'px');
} }
} }
if($('.personal_frontpage_uw_scholar').length > 0) { if ($('.personal_frontpage_uw_scholar').length > 0) {
if ($('.personal_frontpage_uw_scholar').height() > $('.twitter-sidebar-wrapper').css('max-height').replace('px', '')) { if ($('.personal_frontpage_uw_scholar').height() > $('.twitter-sidebar-wrapper').css('max-height').replace('px', '')) {
$('.twitter-sidebar-wrapper').css('max-height', $('.personal_frontpage_uw_scholar').height() + 'px'); $('.twitter-sidebar-wrapper').css('max-height', $('.personal_frontpage_uw_scholar').height() + 'px');
} }
...@@ -54,4 +58,4 @@ ...@@ -54,4 +58,4 @@
} }
} }
}; };
})(jQuery); })(jQuery);
\ No newline at end of file
<?php <?php
/** /**
* @file * @file
* uw_virtual_site_homepage.features.conditional_fields.inc * uw_virtual_site_homepage.features.conditional_fields.inc
......
<?php <?php
/** /**
* @file * @file
* uw_virtual_site_homepage.features.field_base.inc * uw_virtual_site_homepage.features.field_base.inc
......
<?php <?php
/** /**
* @file * @file
* uw_virtual_site_homepage.features.field_instance.inc * uw_virtual_site_homepage.features.field_instance.inc
......
<?php <?php
/** /**
* @file * @file
* uw_virtual_site_homepage.features.inc * uw_virtual_site_homepage.features.inc
......
<?php <?php
/** /**
* @file * @file
* uw_virtual_site_homepage.features.user_permission.inc * uw_virtual_site_homepage.features.user_permission.inc
......
<?php <?php
/** /**
* @file * @file
* uw_virtual_site_homepage.field_group.inc * uw_virtual_site_homepage.field_group.inc
......
This diff is collapsed.
This diff is collapsed.
<?php <?php
/** /**
* @file * @file
* uw_virtual_site_homepage.strongarm.inc * uw_virtual_site_homepage.strongarm.inc
......
<?php <?php
/** /**
* @file * @file
* uw_virtual_site_homepage.views_default.inc * uw_virtual_site_homepage.views_default.inc
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment