source: extensions/ExtendedDescription/template/add_popup.tpl @ 3609

Last change on this file since 3609 was 3609, checked in by patdenice, 15 years ago

Convert all php and tpl files in Unix format for my plugins.

File size: 1.8 KB
Line 
1<script type="text/javascript">
2pop = '<a href="./popuphelp.php?page=extended_desc" onclick="popuphelp(this.href); return false;" title="{'ExtendedDesc_help'|@translate|@escape:'javascript'}" style="vertical-align: middle; border: 0; margin: 0.5em;"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/help.png" class="button" alt="{'ExtendedDesc_help'|@translate|@escape:'javascript'}"></a>';
3{if $ed_page == 'cat_modify'}
4comment = jQuery("td:has(textarea[name=\'comment\'])").html();
5mail_content = jQuery("td:has(textarea[name=\'mail_content\'])").html();
6jQuery("td:has(textarea[name=\'comment\'])").html(comment + pop);
7jQuery("td:has(textarea[name=\'mail_content\'])").html(mail_content + pop);
8jQuery("td:has(input[name=\'name\'])").html('<textarea cols="50" rows="2" name="name" id="name" class="description" style="height: 2em">' + '{$CAT_NAME|@escape:'javascript'}' + '</textarea>' + pop);
9{/if}
10{if $ed_page == 'picture_modify'}
11name = jQuery("td:has(input[name=\'name\'])").html();
12desc = jQuery("td:has(textarea[name=\'description\'])").html();
13jQuery("td:has(input[name=\'name\'])").html(name + pop);
14jQuery("td:has(textarea[name=\'description\'])").html(desc + pop);
15{/if}
16{if $ed_page == 'configuration'}
17page_banner = jQuery("li:has(textarea[name=\'page_banner\'])").html();
18jQuery("li:has(textarea[name=\'page_banner\'])").html(page_banner + pop);
19{/if}
20{if $ed_page == 'notification_by_mail'}
21nbm_complementary_mail_content = jQuery("td:has(textarea[name=\'nbm_complementary_mail_content\'])").html();
22send_customize_mail_content = jQuery("td:has(textarea[name=\'send_customize_mail_content\'])").html();
23jQuery("td:has(textarea[name=\'nbm_complementary_mail_content\'])").html(nbm_complementary_mail_content + pop);
24jQuery("td:has(textarea[name=\'send_customize_mail_content\'])").html(send_customize_mail_content + pop);
25{/if}
26</script>
Note: See TracBrowser for help on using the repository browser.