// Fix little bug with theme installator
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15378 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -860,7 +860,7 @@ class ThemeInstallator extends Module
|
||||
$this->_html .= '<div class="margin-form">
|
||||
<select style="width:350px" name="id_theme">'.$installed_themes.'</select>
|
||||
</div>
|
||||
<input type="submit" class="button" name="exportTheme" value="'.$this->l('Export this theme').'" />';
|
||||
<input type="submit" class="button" name="exportTheme" value="'.$this->l('Export this theme').'" onclick="if (!$(\'select[name=\\\'id_theme\\\']\').val().length) { alert(\''.$this->l('Please select a theme').'\'); return false; } "/>';
|
||||
$this->_html .= '</form>';
|
||||
$this->_html .= '</fieldset>
|
||||
<div class="clear"> </div>';
|
||||
@@ -1469,7 +1469,7 @@ class ThemeInstallator extends Module
|
||||
var select_default = "'.$this->l('Choose a theme').'";
|
||||
var themes = Array();
|
||||
var themes_id = Array();
|
||||
var theme_selected = '.Tools::getValue('id_theme').';
|
||||
var theme_selected = '.(Tools::getValue('id_theme')-1).';
|
||||
';
|
||||
$id = 0;
|
||||
foreach ($this->theme_list as $row)
|
||||
|
||||
Reference in New Issue
Block a user