// Fix Module exception in transplant
This commit is contained in:
1 parent
8aa369531e
commit
9f2424db41
2 files changed
+3
-7
No files matched your search
@@ -92,7 +92,7 @@
|
|||||||
// TODO : Add & Remove automatically the "custom pages" in the "em_list_x"
|
// TODO : Add & Remove automatically the "custom pages" in the "em_list_x"
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
var shopID = obj.attr('id').replace(/\D/g, '');
|
var shopID = obj.attr('id').replace(/\D/g, '');
|
||||||
var list = obj.parent().find('#em_list_' + shopID);
|
var list = obj.closest('form').find('#em_list_' + shopID);
|
||||||
var values = obj.val().split(',');
|
var values = obj.val().split(',');
|
||||||
var len = values.length;
|
var len = values.length;
|
||||||
|
|
||||||
@@ -103,11 +103,11 @@
|
|||||||
|
|
||||||
function position_exception_listchange()
|
function position_exception_listchange()
|
||||||
{
|
{
|
||||||
|
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
var shopID = obj.attr('id').replace(/\D/g, '');
|
var shopID = obj.attr('id').replace(/\D/g, '');
|
||||||
var str = obj.val().join(', ');
|
var str = obj.val().join(', ');
|
||||||
|
obj.closest('form').find('#em_text_' + shopID).val(str);
|
||||||
obj.parent().find('#em_text_' + shopID).val(str);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|||||||
@@ -444,10 +444,6 @@ class AdminModulesPositionsControllerCore extends AdminController
|
|||||||
$content .= '<option value="'.$k.'">'.$k.'</option>';
|
$content .= '<option value="'.$k.'">'.$k.'</option>';
|
||||||
|
|
||||||
$content .= '</select>
|
$content .= '</select>
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<input type="button" class="btn btn-default" value="'.$this->l('Add').'" onclick="position_exception_add('.$shop_id.')" />
|
|
||||||
<input type="button" class="btn btn-default" value="'.$this->l('Remove').'" onclick="position_exception_remove('.$shop_id.')" />
|
|
||||||
</p>';
|
</p>';
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
|
|||||||
Reference in new issue
Block a user