comparison noderef_view.js @ 6:e3f85c9247b7

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.
author Franck Deroche <franck@defr.org>
date Mon, 26 Jan 2009 15:09:55 +0100
parents b4c1e3d5d5ce
children 281e131cb6c3
comparison
equal deleted inserted replaced
5:4fc2f22efcdf 6:e3f85c9247b7
1 // vim: set ts=2 sw=2 expandtab: 1 // vim: set ts=2 sw=2 expandtab:
2 /** 2 /**
3 * Attach the noderef_view behavior. 3 * Attach the noderef_view behavior.
4 */ 4 */
5 Drupal.behaviors.noderef_view = function(context) { 5 Drupal.behaviors.noderef_view = function(context) {
6 $('.noderef-view-wrapper div[id$="-wrapper"]:first-child').addClass('noderef-view-items');
6 $('.noderef_view_link', context).each(function(i, obj) { 7 $('.noderef_view_link', context).each(function(i, obj) {
7 $(obj).addClass('noderef_view_link_processed').click(function() { 8 $(obj).addClass('noderef_view_link_processed').click(function() {
8 // Get the wrapper 9 // Get the wrapper
9 var wrapper = $(this).prev(); 10 var wrapper = $(this).prev();
10 while (!wrapper.is('div')) { 11 while (!wrapper.is('div')) {