別スレッド中にあった記述上の不具合のようです。
追記:
不具合ではありませんでした。
なお、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 />
changed *}-->
<a href="?" onclick="return eccube.insertValueAndSubmit( document.form<!--{$smarty.section.cnt.iteration}-->, 'mode', 'up')">上へ</a><br />
<!-- {* 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>