[Tickets #11708] Script error $(vbook_name) not found
bugs at horde.org
bugs at horde.org
Wed Nov 14 20:00:03 UTC 2012
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: http://bugs.horde.org/ticket/11708
------------------------------------------------------------------------------
Ticket | 11708
Erstellt Von | heinz at htl-steyr.ac.at
Zusammenfassung | Script error $(vbook_name) not found
Warteschlange | Turba
Version | Git master
Typ | Bug
Status | Unconfirmed
Priorität | 1. Low
Milestone |
Patch |
Zuständige |
------------------------------------------------------------------------------
heinz at htl-steyr.ac.at (2012-11-14 20:00) hat geschrieben:
Hi
In turbas search.php the vbook-section is created:
/* The form footer and vbook section. */
if ($search_mode != 'duplicate') {
$vbookView = new Horde_View(array('templatePath' =>
TURBA_TEMPLATES . '/search'));
$vbookView->hasShare = $session->get('turba', 'has_share');
$vbookView->shareSources = $shareSources;
$vbookView->source = $source;
$page_output->addInlineScript('$(\'vbook_name\').observe(\'keyup\',
function() { $(\'save-vbook\').checked = !!$F(\'vbook_name\'); });');
}
The addInlineScript() is executed unconditionaly and the "vbook_name"
observer is defined
The $vbookView render reads the template vbook.html.php witch
creates a vbook_name input field only when $this->hasShare is set.
So if there are no shares configured the observer-script is added and
the associated input field is missing.
Firefox dedects a script error and therefore in my case the
turbaSearchCriteria field is empty
The InlineScript should only be added if shares are configured.
Heinz
More information about the bugs
mailing list