Skip to content

Commit

Permalink
Merge pull request PrestaShop#36171 from ShaiMagal/viewTemplates
Browse files Browse the repository at this point in the history
View templatesRemove email "Preview" from BO section "Statutes" (because it's not working)
  • Loading branch information
Hlavtox authored Jun 25, 2024
2 parents 9a2d8be + 4f40494 commit b5c29fd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@
</li>
{/foreach}
</ul>
<button type="button" class="btn btn-default" onclick="viewTemplates('#template_select_{$language.id_lang}', '{$language.iso_code}/', '.html');">
<i class="icon-eye-open"></i>
{l s='Preview' d='Admin.Actions'}
</button>
</div>
</div>
{/foreach}
Expand Down
14 changes: 0 additions & 14 deletions js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,20 +368,6 @@ function gencode(size)
}
}

var tpl_viewing_window = null;
function viewTemplates(id_select, lang, ext)
{
var loc = $(id_select).val();
if (loc != 0)
{
if (tpl_viewing_window != null && !tpl_viewing_window.closed)
tpl_viewing_window.close();
var url_preview = $("option[value="+loc+"]", id_select).data('preview');
tpl_viewing_window = window.open(url_preview + lang + loc + ext, 'tpl_viewing', 'toolbar=0,location=0,directories=0,statfr=no,menubar=0,scrollbars=yes,resizable=yes,width=520,height=400,top=50,left=300');
tpl_viewing_window.focus();
}
}

function orderDeleteProduct(txtConfirm, txtExplain)
{
ret = true;
Expand Down

0 comments on commit b5c29fd

Please sign in to comment.