Yesterday I was using the version "jquery_impromptu-6.x-1.0.tar.gz" and everything worked.
Today I use "jquery_impromptu-6.x-1.1.tar.gz" and the following happens:
When clicking in the padlock the dialog to set the level of privacy does not show and the page just jumps up.
I am on Drupal 6.6 and I use this function to hide fields on the user profile.
Other involved modules are:
- content_profile-6.x-1.x-dev.tar.gz
- friendlist-6.x-1.x-dev.tar.gz
- cck_field_privacy-6.x-1.0.tar.gz
What can I do to restore some privacy now?
Paul.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | jquery_impromptu-6.x-1.0.tar_.gz | 8.99 KB | paul_constantine |
| #3 | jquery_impromptu-6.x-1.1.tar_.gz | 7.24 KB | paul_constantine |
Comments
Comment #1
paul_constantine commentedThe test proves it.
Went back to yesterdays version (jquery_impromptu-6.x-1.0.tar.gz) and everything works fine.
Now I just have to learn to ignore the nagging update news :-(
There must be a better solution.
Paul
Comment #2
obsidiandesign commentedWhen you updated today, did you download the JQuery Impromptu library from the author's site, and save it in the JQuery Impromptu folder as jquery_impromptu.js? Today's update was to resolve a licensing issue with JQI, so the actual library is no longer in the tarball. This would cause the lack of action when you click the privacy icon.
If you did copy over the library file, please let me know - it means something's wrong with the module file (can you paste the jquery_impromptu.module file here in that case? I can't view it on my cellphone otherwise.
Bryan O'Shea
Comment #3
paul_constantine commentedI just clicked on the download link on my update page.
This is the link:
http://ftp.drupal.org/files/projects/jquery_impromptu-6.x-1.1.tar.gz
Then I unziped the file and copied the folder into the sites/all/modules directory overwriting the old folder. I then run the update.php file and cron. After that the system showed no error messages.
Old jquery_impromptu.module (jquery_impromptu-6.x-1.0.tar.gz) file:
<?php
// $Id: jquery_impromptu.module,v 1.1.2.1 2008/11/24 22:02:48 obsidiandesign Exp $
/**
* This module doesn't do too much, but it is a central location for any other
* modules that implement the jQuery Impromptu library. It ensures that multiple
* modules will all include the same library script just once on any given page.
*/
/**
* Add the jQuery Impromptu javascript library to this page.
*/
function jquery_impromptu_add() {
static $done;
if (!isset($done)) {
$path = drupal_get_path('module', 'jquery_impromptu');
drupal_add_css($path .'/jquery_impromptu.css');
drupal_add_js($path .'/jquery-impromptu.1.5.js');
$done = TRUE;
}
}
New jquery_impromptu.module (jquery_impromptu-6.x-1.1.tar.gz) file:
<?php
// $Id: jquery_impromptu.module,v 1.1.2.3 2008/12/09 12:07:49 obsidiandesign Exp $
/**
* This module doesn't do too much, but it is a central location for any other
* modules that implement the jQuery Impromptu library. It ensures that multiple
* modules will all include the same library script just once on any given page.
*/
/**
* Add the jQuery Impromptu javascript library to this page.
*/
function jquery_impromptu_add() {
static $done;
if (!isset($done)) {
$path = drupal_get_path('module', 'jquery_impromptu');
drupal_add_css($path .'/jquery_impromptu.css');
drupal_add_js($path .'/jquery_impromptu.js');
$done = TRUE;
}
}
Okay ... after comparing the files I did notice my mistake. I should have just copied the content of the new folder into the old folder thereby keeping the "jquery-impromptu.1.5.js". My bad.
Will try again.
Thanks for the hint.
Paul.
Comment #4
paul_constantine commentedSorry to be the bearer of bad news.
It still does not work. I renamed the "jquery-impromptu.1.5.js" to "jquery-impromptu.js" and put it in the new folder.
Again the pop-ups did not work and the page jumped up.
What am I doing wrong.
Paul
Comment #5
obsidiandesign commentedIt looks like in your post you used jquery-impromptu, with a hyphen. The Javascript file needs to be jquery_impromptu.js, with an underscore. If you did have an underscore sorry, my phone browser is tiny and I misread your post - in that case, I'll have to examine things when I get home tonight.
I'll also put up a more clear set of upgrade instructions.
Comment #6
paul_constantine commentedThat fixed it!
It works now. Did not notice the underscore thing.
Many thanks, Paul.