Changeset 413 for trunk/lib/FormValidator.inc.php
- Timestamp:
- Oct 2, 2012 1:57:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FormValidator.inc.php
r396 r413 176 176 * @param string $above Additional message to print above error messages (e.g. "Oops!"). 177 177 * @param string $below Additional message to print below error messages (e.g. "Please fix and resubmit"). 178 * @param string $print_gotohash_js Print a line of javascript that scrolls the browser window down to view any error messages. 179 * @param string $hash The #hashtag to scroll to. 178 180 * @access public 179 181 * @author Quinn Comendant <quinn@strangecode.com> 180 182 * @since 15 Jul 2005 01:39:14 181 183 */ 182 function printErrorMessages($above='', $below='' )184 function printErrorMessages($above='', $below='', $print_gotohash_js=false, $hash='sc-msg-formvalidator') 183 185 { 184 186 $app =& App::getInstance(); … … 217 219 } 218 220 ?></div><?php 221 if ($print_gotohash_js) { 222 ?> 223 <script type="text/javascript"> 224 /* <![CDATA[ */ 225 window.location.hash = '#<?php echo urlencode($hash); ?>'; 226 /* ]]> */ 227 </script> 228 <?php 229 } 219 230 } 220 231 }
Note: See TracChangeset
for help on using the changeset viewer.