Changeset 45 for branches/ajax_post_edit

Show
Ignore:
Timestamp:
02/14/09 11:18:08 (3 years ago)
Author:
daris
Message:

adding go_to_page extension

Location:
branches/ajax_post_edit
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/ajax_post_edit/ajax_post_edit.js

    r42 r45  
    2020                // if other post is editing, cancel edit 
    2121                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                } 
    2331 
    2432                if (ape_id != id) 
     
    6068 
    6169        $('postedit').style.height = textAreaHeight + 'px'; 
     70        $('postedit').focus(); 
    6271} 
    6372 
  • branches/ajax_post_edit/edit.php

    r37 r45  
    100100                        <div style="margin-top: 5px"> 
    101101                                <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'] ?> 
    103103                                </div> 
    104104                                <input type="button" onclick="ape_update_post(<?php echo $id ?>)" value="<?php echo $lang_ape['Update'] ?>" id="btn_updatePost" />