[-] BO : Remove dead code in AdminImport
This commit is contained in:
1 parent
6e0c3e1aa2
commit
0f288583ca
2 files changed
+1
-32
No files matched your search
@@ -574,17 +574,12 @@ class AdminImportControllerCore extends AdminController
|
|||||||
for ($i = 0; $i < $nb_column; $i++)
|
for ($i = 0; $i < $nb_column; $i++)
|
||||||
if (MAX_COLUMNS * (int)$current_table <= $i && (int)$i < MAX_COLUMNS * ((int)$current_table + 1))
|
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">
|
$html .= '<th style="width: '.(900 / MAX_COLUMNS).'px; vertical-align: top; padding: 4px">
|
||||||
<select onchange="askFeatureName(this, '.$i.');"
|
<select style="width: '.(900 / MAX_COLUMNS).'px;"
|
||||||
style="width: '.(900 / MAX_COLUMNS).'px;"
|
|
||||||
id="type_value['.$i.']"
|
id="type_value['.$i.']"
|
||||||
name="type_value['.$i.']"
|
name="type_value['.$i.']"
|
||||||
class="type_value">
|
class="type_value">
|
||||||
'.$this->getTypeValuesOptions($i).'
|
'.$this->getTypeValuesOptions($i).'
|
||||||
</select>
|
</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>';
|
</th>';
|
||||||
$html .= '</tr>';
|
$html .= '</tr>';
|
||||||
|
|
||||||
|
|||||||
-26
@@ -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)
|
function chooseTypeTranslation(id_lang)
|
||||||
{
|
{
|
||||||
getE('translation_lang').value = id_lang;
|
getE('translation_lang').value = id_lang;
|
||||||
|
|||||||
Reference in new issue
Block a user