Ignore:
Timestamp:
Dec 18, 2013, 10:50:52 AM (11 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.6 (and no longer with 2.5)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/birthdate/admin/template/birthdates.tpl

    r19773 r26016  
    88
    99{combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'}
     10{combine_css path="themes/default/js/plugins/chosen.css"}
    1011
    11 {combine_css path="themes/default/js/plugins/chosen.css"}
    1212{combine_css path="themes/default/js/ui/theme/jquery.ui.datepicker.css"}
    1313{combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"}
    1414
    15 {footer_script require='jquery.timepicker'}{literal}
     15{footer_script require='jquery.timepicker'}
    1616jQuery(document).ready(function() {
    17   jQuery("#who").chosen();
     17  jQuery("#who").chosen({ "width":"300px" });
    1818
    1919  jQuery('#birthdateSelect').datetimepicker({
     
    2323    yearRange: "1900:+1",
    2424    dateFormat: "yy-mm-dd",
    25     timeText: '{/literal}{'selection'|@translate|escape:javascript}{literal}',
    26     hourText: '{/literal}{'Hour'|@translate|escape:javascript}{literal}',
    27     minuteText: '{/literal}{'Minute'|@translate|escape:javascript}{literal}',
    28     currentText: '{/literal}{'Now'|@translate|escape:javascript}{literal}',
    29     closeText: '{/literal}{'Validate'|@translate|escape:javascript}{literal}'
     25    timeText: '{'selection'|@translate|escape:javascript}',
     26    hourText: '{'Hour'|@translate|escape:javascript}',
     27    minuteText: '{'Minute'|@translate|escape:javascript}',
     28    currentText: '{'Now'|@translate|escape:javascript}',
     29    closeText: '{'Validate'|@translate|escape:javascript}'
    3030  });
    3131
     
    5757
    5858    jQuery("[name=add_birthdate]").show();
    59     jQuery("#who").val("~~"+tag_id+"~~").trigger("liszt:updated");
     59    jQuery("#who").val("~~"+tag_id+"~~").trigger("chosen:updated");
    6060    jQuery("#birthdateSelect").val(birthdate);
    6161
     
    8787
    8888});
    89 {/literal}{/footer_script}
     89{/footer_script}
    9090
    91 
    92 {literal}
    93 <style>
     91{html_style}{literal}
    9492form fieldset p {text-align:left;margin:0 0 1.5em 0;line-height:20px;}
    9593.rowSelected {background-color:#C2F5C2 !important}
     
    9795.birthdateActions {text-align:center;}
    9896.birthdateActions a:hover {border:none}
     97.ui-datepicker-current {display:none}
    9998
    10099#editLegend {display:none}
    101 </style>
    102 {/literal}
     100.birthdateActions a {display:inline-block;}
     101.birthdateActions a:hover {text-decoration:none;}
     102{/literal}{/html_style}
    103103
    104104<div class="titrePage">
     
    120120      <strong>{'Who?'|@translate}</strong>
    121121      <br>
    122       <select id="who" name="who" data-placeholder="{'Select a tag'|@translate}" style="width:250px;">
     122      <select id="who" name="who" data-placeholder="{'Select a tag'|@translate}">
    123123        <option value=""></option>
    124124{foreach from=$tags item=tag}
     
    157157    <td>{$birthdate.PHOTOS}</td>
    158158    <td class="birthdateActions">
    159       <a href="#" class="editBirthdate" data-tag_id="{$birthdate.TAG_ID}" data-birthdate="{$birthdate.BIRTHDATE_RAW}">
    160         <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/edit_s.png" alt="{'edit'|@translate}" title="{'edit'|@translate}" />
    161       </a>
    162       <a href="{$birthdate.U_DELETE}" onclick="return confirm( document.getElementById('btn_delete{$birthdate.TAG_ID}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');">
    163         <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" id="btn_delete{$birthdate.TAG_ID}" alt="{'delete'|@translate}" title="{'Delete birthdate for %s'|@translate|@sprintf:$birthdate.NAME}" />
    164       </a>
     159      <a href="#" class="editBirthdate icon-pencil" data-tag_id="{$birthdate.TAG_ID}" data-birthdate="{$birthdate.BIRTHDATE_RAW}" title="{'edit'|@translate}"></a>
     160      <a href="{$birthdate.U_DELETE}" onclick="return confirm( document.getElementById('btn_delete{$birthdate.TAG_ID}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');" class="icon-trash" title="{'Delete birthdate for %s'|@translate|@sprintf:$birthdate.NAME}"></a>
    165161    </td>
    166162  </tr>
Note: See TracChangeset for help on using the changeset viewer.