Skip to content

Commit

Permalink
不要なコード削除
Browse files Browse the repository at this point in the history
  • Loading branch information
riki committed Aug 31, 2022
1 parent fc0600b commit 942ee07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions src/Eccube/Resource/template/admin/Setting/Shop/csv.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ file that was distributed with this source code.
$(function() {
$(window).on('pageshow', function() {
if(window.performance.navigation.type == 2) {
var tmp_select = $('#csv-type[name="form[csv_type]"] option[selected]').val();
$('#csv-type[name="form[csv_type]"] option:selected').removeAttr('selected');
$('#csv-type[name="form[csv_type]"]').val(tmp_select);
}
var tmp_select = $('#csv-type[name="form[csv_type]"] option[selected]').val();
$('#csv-type[name="form[csv_type]"]').val(tmp_select);
});
function add(event) {
Expand Down
7 changes: 2 additions & 5 deletions src/Eccube/Resource/template/admin/Setting/Shop/mail.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ file that was distributed with this source code.
$(function() {
$(window).on('pageshow', function() {
if(window.performance.navigation.type == 2) {
var tmp_select = $('#mail_template[name="mail[template]"] option[selected]').val();
$('#mail_template[name="mail[template]"] option:selected').removeAttr('selected');
$('#mail_template[name="mail[template]"]').val(tmp_select);
}
var tmp_select = $('#mail_template[name="mail[template]"] option[selected]').val();
$('#mail_template[name="mail[template]"]').val(tmp_select);
});
$('#mail_template').on('change', function() {
Expand Down

0 comments on commit 942ee07

Please sign in to comment.