# HG changeset patch # User Franck Deroche # Date 1232978995 -3600 # Node ID e3f85c9247b7e248441b22d7e14be8756a3e6e00 # Parent 4fc2f22efcdf8d49986c74ec99160943578abe69 Put the links in a right sidebar. This is probably highly controversial and should at least be controlled by a pref, but its "needed" by the customer. diff -r 4fc2f22efcdf -r e3f85c9247b7 noderef_view.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/noderef_view.css Mon Jan 26 15:09:55 2009 +0100 @@ -0,0 +1,4 @@ +.noderef-view-items { + float: left; + margin-right: 15px; +} diff -r 4fc2f22efcdf -r e3f85c9247b7 noderef_view.js --- a/noderef_view.js Mon Jan 26 14:59:57 2009 +0100 +++ b/noderef_view.js Mon Jan 26 15:09:55 2009 +0100 @@ -3,6 +3,7 @@ * Attach the noderef_view behavior. */ Drupal.behaviors.noderef_view = function(context) { + $('.noderef-view-wrapper div[id$="-wrapper"]:first-child').addClass('noderef-view-items'); $('.noderef_view_link', context).each(function(i, obj) { $(obj).addClass('noderef_view_link_processed').click(function() { // Get the wrapper diff -r 4fc2f22efcdf -r e3f85c9247b7 noderef_view.module --- a/noderef_view.module Mon Jan 26 14:59:57 2009 +0100 +++ b/noderef_view.module Mon Jan 26 15:09:55 2009 +0100 @@ -68,8 +68,10 @@ if ($alter) { // We've changed the form, add the JS-behavior and Views CSS // (the latter to deal with exposed filters in the popup) + $path = drupal_get_path('module', 'noderef_view'); + drupal_add_js($path .'/noderef_view.js'); + drupal_add_css($path .'/noderef_view.css'); drupal_add_css(drupal_get_path('module', 'views') .'/css/views.css'); - drupal_add_js(drupal_get_path('module', 'noderef_view') .'/noderef_view.js'); } } elseif ($form_id == 'views_exposed_form' && isset($_GET['destination'])) { @@ -122,7 +124,7 @@ function noderef_view_add_link($form_element) { $form_element['#prefix'] = "
" . $form_element['#prefix']; - $form_element['#suffix'] .= $form_element['#links'] . '
'; + $form_element['#suffix'] .= $form_element['#noderef_view_link'] . ''; return $form_element; }