- Timestamp:
- 02/12/09 18:14:00 (3 years ago)
- Location:
- branches/ajax_post_edit
- Files:
-
- 3 modified
-
ajax_post_edit.js (modified) (2 diffs)
-
edit.php (modified) (1 diff)
-
manifest.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/ajax_post_edit/ajax_post_edit.js
r36 r37 114 114 if ($('edit-error')) 115 115 { 116 error s = errors.substring(errors.indexOf('>')+1);117 error s = errors.substring(0, errors.lastIndexOf('</'));118 $('edit-error').innerHTML = error s;116 error = error.substring(error.indexOf('>')+1); 117 error = error.substring(0, error.lastIndexOf('</')); 118 $('edit-error').innerHTML = error; 119 119 } 120 120 else … … 126 126 var html = entry_content.innerHTML; 127 127 var replace = html.substring(0, html.indexOf('<', 2)); 128 html = html.replace(replace, replace + error s);128 html = html.replace(replace, replace + error); 129 129 entry_content.innerHTML = html; 130 130 -
branches/ajax_post_edit/edit.php
r36 r37 137 137 if ($message == '') 138 138 $errors[] = $lang_post['No message']; 139 else if (strlen($message) > FORUM_MAX_POSTSIZE)140 $errors[] = $lang_post['Too long message'];141 else if ($forum_config['p_message_all_caps'] == '0' && strtoupper($message) == $message && !$forum_page['is_admmod'])142 $ message = ucwords(strtolower($message));139 if (strlen($message) > FORUM_MAX_POSTSIZE_BYTES) 140 $errors[] = sprintf($lang_post['Too long message'], forum_number_format(strlen($message)), forum_number_format(FORUM_MAX_POSTSIZE_BYTES)); 141 else if ($forum_config['p_message_all_caps'] == '0' && utf8_strtoupper($message) == $message && !$forum_page['is_admmod']) 142 $errors[] = $lang_post['All caps message']; 143 143 144 144 // Validate BBCode syntax -
branches/ajax_post_edit/manifest.xml
r36 r37 4 4 <id>ajax_post_edit</id> 5 5 <title>Ajax Post Edit</title> 6 <version>1. 62</version>6 <version>1.7</version> 7 7 <description>This extension allows quickly edit post</description> 8 8 <author>Daris</author> 9 <minversion>1.3 Beta</minversion>10 <maxtestedon>1.3 Beta</maxtestedon>9 <minversion>1.3</minversion> 10 <maxtestedon>1.3.2</maxtestedon> 11 11 <hooks> 12 12 <hook id="ft_end"><![CDATA[