6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/13/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11708] Script error $(vbook_name) not found
*
Your Email Address
*
Spam protection
Enter the letters below:
__ .___..___.. .. . / ` | _/ |\ || | \__. | ./__.| \||__|
Comment
> 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
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers