Closed (fixed)
Project:
TranslateThis Button
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 May 2012 at 12:07 UTC
Updated:
12 Nov 2012 at 21:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
BarisW commentedThanks for this patch and apologies for the late reply.
Applied with proper attribution so it ends up on your profile.
Comment #3
tjmoyer commentedThe patch supplied here and integrated into the latest release of TranslateThis (7.x-1.1) adds the base_url to the $button_path in translate_this_js_options(), which causes the check on whether $button_path is empty to return false even if the actual path is empty. If a site has "Disable the default button image" selected, but no image settings set, this causes js settings for the button to be set improperly like this:
This causes a javascript error, at least in IE.
This patch also corrects a small error in how variable_get is called for the button image path, where there was no second parameter.
Comment #4
BarisW commentedCommitted. Thanks!
http://drupal.org/commitlog/commit/15212/59870fe1b5a236bc767e31d873b8f94...