Commit 5c4f97a4 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-42: Fixing link help text on homepage settings for homepage banners.

parent cb4cc073
(function ($) {
Drupal.behaviors.uw_virtual_site_homepage = {
attach: function (context, settings) {
// 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) {
// 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.") {
// Move the div to under the URL link textbox.
$(this).appendTo($(this).parent().find('.link-field-url'));
}
});
}
};
})(jQuery);
\ No newline at end of file
...@@ -228,6 +228,9 @@ function uw_virtual_site_homepage_form_alter(&$form, &$form_state, $form_id) { ...@@ -228,6 +228,9 @@ function uw_virtual_site_homepage_form_alter(&$form, &$form_state, $form_id) {
function uw_virtual_site_homepage_form_uw_virtual_site_homepage_node_form_alter(&$form, &$form_state, $form_id) { function uw_virtual_site_homepage_form_uw_virtual_site_homepage_node_form_alter(&$form, &$form_state, $form_id) {
global $base_path; global $base_path;
// Adding javascript for the form.
drupal_add_js(drupal_get_path('module', 'uw_virtual_site_homepage') . '/js/uw_virtual_site_homepage.js');
// Get current link. // Get current link.
$url = request_uri(); $url = request_uri();
......
Supports Markdown
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