Ignore:
Timestamp:
Feb 18, 2011, 3:55:46 PM (13 years ago)
Author:
patdenice
Message:

Auto fill permalink.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdditionalPages/admin/template/add_page.tpl

    r9273 r9274  
    1 {literal}
     1{html_head}{literal}
    22<script type="text/javascript">
    33function GereChkbox(conteneur, a_faire) {
     
    1313        }
    1414}
     15
     16jQuery().ready( function () {
     17  jQuery('#title').focusout(function () {
     18    if (jQuery('#permalink').val() == '' && auto_permalink)
     19      jQuery.post("plugins/AdditionalPages/admin/ajax.php", { str: this.value }, function(data) {
     20        jQuery('#permalink').val(data);
     21        auto_permalink = false;
     22      });
     23  });
     24});
     25
     26var auto_permalink = true;
    1527</script>
    16 {/literal}
     28{/literal}{/html_head}
    1729
    1830<div class="titrePage">
     
    95107                </tr>
    96108</table>
    97 
    98109</form>
Note: See TracChangeset for help on using the changeset viewer.