Changeset 45 for branches/ajax_post_edit
- Timestamp:
- 02/14/09 11:18:08 (3 years ago)
- Location:
- branches/ajax_post_edit
- Files:
-
- 2 modified
-
ajax_post_edit.js (modified) (2 diffs)
-
edit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/ajax_post_edit/ajax_post_edit.js
r42 r45 20 20 // if other post is editing, cancel edit 21 21 if (ape_id != id && ape_id != -1) 22 ape_cancel_edit(ape_id); 22 { 23 if (confirm("Are you sure you want to cancel last edit?")) 24 ape_cancel_edit(ape_id); 25 else 26 { 27 ape_hide_menu(); 28 return; 29 } 30 } 23 31 24 32 if (ape_id != id) … … 60 68 61 69 $('postedit').style.height = textAreaHeight + 'px'; 70 $('postedit').focus(); 62 71 } 63 72 -
branches/ajax_post_edit/edit.php
r37 r45 100 100 <div style="margin-top: 5px"> 101 101 <div style="float:right; display:none" id="edit_info"> 102 <img src=" extensions/ajax_post_edit/loading.gif" /> <?php echo $lang_ape['Saving'] ?>102 <img src="<?php echo $base_url ?>/extensions/ajax_post_edit/loading.gif" /> <?php echo $lang_ape['Saving'] ?> 103 103 </div> 104 104 <input type="button" onclick="ape_update_post(<?php echo $id ?>)" value="<?php echo $lang_ape['Update'] ?>" id="btn_updatePost" />