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-node-form #edit-options {
display: none;
display: none;
}
#edit-actions-top {
display: none;
display: none;
}
/* Biblio settings */
.citation-example-wrapper {
margin-top: 10px;
background-color: white;
padding-left: 10px;
padding-top: 5px;
padding-bottom: 5px;
padding-right: 10px;
margin-top: 10px;
background-color: white;
padding-left: 10px;
padding-top: 5px;
padding-bottom: 5px;
padding-right: 10px;
}
#edit-field-uw-homepage-banners .image-widget-data input[id*="remove-button"] {
display: none;
display: none;
}
/**
* @file
*/
(function ($) {
Drupal.behaviors.uw_virtual_site_homepage = {
......@@ -5,8 +9,8 @@
attach: function (context, settings) {
// RT#615890: Fixing extra space at the end of some names.
$(document).ready(function() {
$('.biblio-entry span.biblio-authors').each(function() {
$(document).ready(function () {
$('.biblio-entry span.biblio-authors').each(function () {
str = $(this).html();
str = str.replace(/\s*$/,"");
$(this).html(str);
......@@ -14,10 +18,10 @@
});
// 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($(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.
$(this).appendTo($(this).parent().find('.link-field-url'));
......@@ -25,7 +29,7 @@
});
// 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.
var oldhtml = $('#content #biblio-header').html();
......@@ -34,19 +38,19 @@
$('#content #biblio-header').html(newhtml);
}
if($('.biblio-filter-status').length > 0) {
if ($('.biblio-filter-status').length > 0) {
$('#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($('.twitter-sidebar-wrapper').length > 0) {
if($('#content').length > 0) {
if ($('.twitter-sidebar-wrapper').length > 0) {
if ($('#content').length > 0) {
if ($('#content').height() > $('.twitter-sidebar-wrapper').css('max-height').replace('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', '')) {
$('.twitter-sidebar-wrapper').css('max-height', $('.personal_frontpage_uw_scholar').height() + 'px');
}
......@@ -54,4 +58,4 @@
}
}
};
})(jQuery);
\ No newline at end of file
})(jQuery);
<?php
/**
* @file
* uw_virtual_site_homepage.features.conditional_fields.inc
......
<?php
/**
* @file
* uw_virtual_site_homepage.features.field_base.inc
......
<?php
/**
* @file
* uw_virtual_site_homepage.features.field_instance.inc
......
<?php
/**
* @file
* uw_virtual_site_homepage.features.inc
......
<?php
/**
* @file
* uw_virtual_site_homepage.features.user_permission.inc
......
<?php
/**
* @file
* uw_virtual_site_homepage.field_group.inc
......
This diff is collapsed.
This diff is collapsed.
<?php
/**
* @file
* uw_virtual_site_homepage.strongarm.inc
......
<?php
/**
* @file
* 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