Fixing select inside forms

skala
Julio Montoya 14 years ago
parent 9bdecfe917
commit 4713aeb855
  1. 2
      main/admin/settings.lib.php
  2. 4
      main/inc/lib/sortabletable.class.php

@ -249,7 +249,7 @@ function handle_stylesheets() {
}
</script>
<?php
echo '<form id="stylesheets_id" name="stylesheets" method="post" action="'.api_get_self().'?category='.Security::remove_XSS($_GET['category']).'">';
echo '<form id="stylesheets_id" name="stylesheets" class="form-search" method="post" action="'.api_get_self().'?category='.Security::remove_XSS($_GET['category']).'">';
echo '<br /><select name="style" onchange="load_preview(this)" >';
$list_of_styles = array();

@ -247,7 +247,7 @@ class SortableTable extends HTML_Table {
}
if (count($this->form_actions) > 0) {
$html .= '<script language="JavaScript" type="text/javascript">
$html .= '<script type="text/javascript">
/*<![CDATA[*/
function setCheckbox(value) {
d = document.form_'.$this->table_name.';
@ -265,7 +265,7 @@ class SortableTable extends HTML_Table {
/*]]>*/
</script>';
$params = $this->get_sortable_table_param_string().'&amp;'.$this->get_additional_url_paramstring();
$html .= '<form method="post" action="'.api_get_self().'?'.$params.'" name="form_'.$this->table_name.'">';
$html .= '<form class="form-search" method="post" action="'.api_get_self().'?'.$params.'" name="form_'.$this->table_name.'">';
}
}

Loading…
Cancel
Save