[Bb-trac] [bbPress] #611: manage_tags_forms causes unterminated string JavaScript error in IE

bbPress bb-trac at lists.bbpress.org
Thu Mar 8 11:31:45 GMT 2007


#611: manage_tags_forms causes unterminated string JavaScript error in IE
----------------------------+-----------------------------------------------
 Reporter:  mikenolan       |       Owner:       
     Type:  defect          |      Status:  new  
 Priority:  normal          |   Milestone:       
Component:  Administration  |     Version:  0.8.1
 Severity:  normal          |    Keywords:       
----------------------------+-----------------------------------------------
 The following line:

 {{{
         $form .= "onclick='return confirm(\" ". js_escape( sprintf(__('Are
 you sure you want to merge the '%s' tag into the tag you
 specified? This is permanent and cannot be undone.'), $tag->raw_tag) )
 ."\")' />\n\t";
 }}}

 Outputs as

 {{{
         <input type='submit' name='Submit' value='Merge' onclick='return
 confirm(" Are you sure you want to merge the \'athletics\' tag into the
 tag you specified? This is permanent and cannot be undone.")' />
 }}}

 On IE it errors on page load with "Unterminated string constant" while in
 Firefox the confirm just plain doesn't work.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/611>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list