バージョン選択

フォーラム

メニュー

オンライン状況

58 人のユーザが現在オンラインです。 (46 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 58
もっと...

サイト内検索

バグ報告 > 管理機能 > v2.13.0 管理画面:おすすめ商品のテンプレートに不要な関数がある。

管理機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
sumida
投稿日時: 2013/10/2 16:51
対応状況: −−−
仙人
登録日: 2013/2/10
居住地: 広島県呉市ときどき瀬戸内海
投稿: 641
v2.13.0 管理画面:おすすめ商品のテンプレートに不要な関数がある。
別スレッド中にあった記述上の不具合のようです。

追記:
不具合ではありませんでした。
なお、v2.12の場合、次の投稿のように修正が必要です。



data/Smarty/templates/admin/contents/recommend.tplに

function lfnSortItem(mode,data,cnt){
    var flag = true;
    var checkRank = '<!--{$checkRank|h}-->';
    if ( checkRank ){
        if( ! window.confirm('さきほど選択した<!--{$checkRank|h}-->位の情報は破棄されます。宜しいでしょうか')){
            flag = false;
        }
    }

    if ( flag ){
        document["form"+cnt]["mode"].value = mode;
        document["form"+cnt]["best_id"].value = data;
        document["form"+cnt].submit();
    }
}

window.confirmの内容が不明

再編集:
こちらの案件を調査していて、見つけました。
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=13379&post_id=60990&order=0&viewmode=thread&pid=0&forum=9#forumpost60990

修正案:
data/Smarty/templates/admin/contents/recommend.tpl

/* deleted
function lfnSortItem(mode,data,cnt){
    var flag = true;
    var checkRank = '<!--{$checkRank|h}-->';
    if ( checkRank ){
        if( ! window.confirm('さきほど選択した<!--{$checkRank|h}-->位の情報は破棄されます。宜しいでしょうか')){
            flag = false;
        }
    }

    if ( flag ){
        document["form"+cnt]["mode"].value = mode;
        document["form"+cnt]["best_id"].value = data;
        document["form"+cnt].submit();
    }
}
deleted */

これに伴い、呼び出し元を、eccube.insertValueAndSubmit に変更

                <td>
                    <!--{* 移動 *}-->
                    <!--{if $smarty.section.cnt.iteration != 1 && $arrItems[$smarty.section.cnt.iteration].product_id}-->
<!--{* changed
                        <a href="?" onclick="lfnSortItem('up',<!--{$arrItems[$smarty.section.cnt.iteration].best_id}-->); return false;">上へ</a><br />&nbsp;
changed *}-->
                        <a href="?" onclick="return eccube.insertValueAndSubmit( document.form<!--{$smarty.section.cnt.iteration}-->, 'mode', 'up')">上へ</a><br />&nbsp;
<!-- {* changed *}-->
                    <!--{/if}-->
                    <!--{if $smarty.section.cnt.iteration != $tpl_disp_max && $arrItems[$smarty.section.cnt.iteration].product_id}-->
<!--{* changed
                        <a href="?" onclick="lfnSortItem('down',<!--{$arrItems[$smarty.section.cnt.iteration].best_id}-->); return false;">下へ</a>
changed *}-->
                        <a href="?" onclick="return eccube.insertValueAndSubmit( document.form<!--{$smarty.section.cnt.iteration}-->, 'mode', 'down')">下へ</a>
<!-- {* changed *}-->
                    <!--{/if}-->
                </td>
sumida
投稿日時: 2013/11/2 22:37
対応状況: −−−
仙人
登録日: 2013/2/10
居住地: 広島県呉市ときどき瀬戸内海
投稿: 641
Re: v2.13.0 管理画面:おすすめ商品のテンプレートに不要な関数がある。
失礼しました。
どうも思い違いをしていたようです。

不具合ではありませんでした。

ただし、v2.12では、不具合があるので、関数 lfnSortItem をv2.13のように修正する必要があります。
v2.12

    if ( flag ){
        document.form1["mode"].value = mode;
        document.form1["rank"].value = data;
        document.form1.submit();
    }


v2.13

    if ( flag ){
        document["form"+cnt]["mode"].value = mode;
        document["form"+cnt]["best_id"].value = data;
        document["form"+cnt].submit();
    }
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,287名です
総投稿数は109,688件です

投稿数ランキング

1
seasoft
7365
2
468
3217
3
AMUAMU
2712
4
nanasess
2303
5
umebius
2085
6
yuh
1818
7
h_tanaka
1610
8
red
1567
9
mcontact
1240
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
796
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.