Hey guys,

I took a look at eRecruiter and the demo site @ http://drupaljobs.epiqo.com.
After searching for a job and then clicking on one of them, the job opens up in a light box.

Is there any way to dev it without using a light box?
It's not user freindly to have the app in a seperate box floating above the main screen. Rather have it all in the web site fully contained.



solartoasting’s picture

Further to this thread, i've had a look around on the forum and people are asking similar questions.

However, their terminology is an "overlay" and not a light box. So if anyone knows how to use eRecruiter with "overlays" off and have the job search results and the app run inside the web page and not in an overlay, please let me know.


dasjo’s picture

Title:Light box in eRecruiter» Using eRecruiter without colorbox popups
Status:Active» Fixed

hi solartoasting,

recruiter uses the colorbox module for job popups.
try ti disable it and please post your findings.


Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

likewhoa’s picture

Title:Using eRecruiter without colorbox popups» Remove dependency to overlay module
Status:Closed (fixed)» Active

@dasjo it's not colorbox, colorbox popups are for images not content. What you meant was the overlay module which recruiter depends on. I for one wish to have this dependency disabled or have it optional.

dasjo’s picture

Title:Remove dependency to overlay module» Using eRecruiter without colorbox popups

@likewhoa i don't agree here, as i stated before, recruiter uses colorbox popups for job links

the job_search view defines a recruiter-job-link class:

318   $handler->display->display_options['fields']['title']['alter']['link_class'] = 'recruiter-job-link';

colorbox.js attaches colorbox to links with the recruiter-job-link class

   1 // $Id$
   2 (function ($) {
   4 Drupal.behaviors.initRecruiterColorbox = {
   5   attach: function (context, settings) {
   6         // Modify settings as suiting for the recruiter.
   7         settings.colorbox.innerHeight = "70%";
   8         settings.colorbox.innerWidth = 950;
   9         settings.colorbox.iframe = true;
  11   $('a, area, input', context)
  12     .filter('.recruiter-job-link, .recruiter-resume-link')
  13     .once('init-recruitercolorbox-processed')
  14     .colorbox(settings.colorbox)
  15     .attr('href', function (ind, attr) {
  16       // If the href contains "?", append $, else, append ?
  17       return /\?/.test(attr) ? attr + '&render=slim' : attr + '?render=slim';
  18     });
  20   }
  21 };
  23 })(jQuery);

a solution might be to add conditionals around the colorbox.js inclusion or to refactor colorbox-related functionality into a separate recruiter feature that may be disabled. patches welcome :)

the request for having overlay module optional should go into a separate issue i think

likewhoa’s picture

@dasjo thanks for clarifying this, I have opened a new issue requesting the removal of the overlay module from info file. Also this colorbox.js is has broken my omega theme and I have just disabled it all together.

dasjo’s picture

you are welcome likewhoa, let's not forget to link the new issue :) #1420368: Remove dependency to overlay module

mh86’s picture

Status:Active» Fixed

This is fixed now. Colorbox is optional, but will be enabled by default.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

likewhoa’s picture

Title:Using eRecruiter without colorbox popups» Refactor colorbox-related functionality
Version:7.x-1.0-beta4» 7.x-1.x-dev
Component:Miscellaneous» Code
Category:support» feature
Status:Closed (fixed)» Active

Colorbox functionality should really be optional and should at least only depend on the colorbox plugin library.

cutmedia’s picture

How is this fixed? Disabling Colorbox breaks other JS functionality, Flexslider in my case.