[-] BO : Remove dead code in AdminImport
This commit is contained in:
@@ -574,17 +574,12 @@ class AdminImportControllerCore extends AdminController
|
||||
for ($i = 0; $i < $nb_column; $i++)
|
||||
if (MAX_COLUMNS * (int)$current_table <= $i && (int)$i < MAX_COLUMNS * ((int)$current_table + 1))
|
||||
$html .= '<th style="width: '.(900 / MAX_COLUMNS).'px; vertical-align: top; padding: 4px">
|
||||
<select onchange="askFeatureName(this, '.$i.');"
|
||||
style="width: '.(900 / MAX_COLUMNS).'px;"
|
||||
<select style="width: '.(900 / MAX_COLUMNS).'px;"
|
||||
id="type_value['.$i.']"
|
||||
name="type_value['.$i.']"
|
||||
class="type_value">
|
||||
'.$this->getTypeValuesOptions($i).'
|
||||
</select>
|
||||
<div id="features_'.$i.'" style="display: none;">
|
||||
<input style="width: 90px" type="text" name="" id="feature_name_'.$i.'">
|
||||
<input type="button" value="ok" onclick="replaceFeature($(\'#feature_name_'.$i.'\').attr(\'name\'), '.$i.');">
|
||||
</div>
|
||||
</th>';
|
||||
$html .= '</tr>';
|
||||
|
||||
|
||||
26
js/admin.js
26
js/admin.js
@@ -477,32 +477,6 @@ function validateImportation(mandatory)
|
||||
}
|
||||
}
|
||||
|
||||
function askFeatureName(selected, selector)
|
||||
{
|
||||
var elem;
|
||||
|
||||
if (selected.value == 'features')
|
||||
{
|
||||
$('#features_' + selector).show();
|
||||
$('#feature_name_' + selector).attr('name', selected.name);
|
||||
}
|
||||
}
|
||||
|
||||
function replaceFeature(toReplace, selector)
|
||||
{
|
||||
var elem;
|
||||
|
||||
if ($('#feature_name_' + selector).val() == '')
|
||||
return false;
|
||||
|
||||
elem = getE(toReplace);
|
||||
elem.options[elem.selectedIndex].text = $('#feature_name_' + selector).val();
|
||||
elem.options[elem.selectedIndex].value = '#F_' + $('#feature_name_' + selector).val();
|
||||
$('#features_' + selector).toggle();
|
||||
$('#feature_name_' + selector).val('');
|
||||
$('#feature_name_' + selector).attr('name', '');
|
||||
}
|
||||
|
||||
function chooseTypeTranslation(id_lang)
|
||||
{
|
||||
getE('translation_lang').value = id_lang;
|
||||
|
||||
Reference in New Issue
Block a user