• Главная
  • Поиск
    •  
  • Здравствуйте, Гость

Автор Тема: Поле "имя" обязательно для заполнения  (Прочитано 8567 раз)
Оффлайн i7p
  • *
  • Сообщений: 14
« Ответ #15 : 16 Май 2014, 08:37:51 »
Может быть кому-то пригодится. Проблема была в следующем:
При настройке выпадающих из списка городов в item-post.php, уже не помню кто и где посоветовал добавить в таком виде:


<?php UserForm::location_javascript(); ?>
                <form action="<?php echo osc_base_url(true) ; ?>" method="post">
                    <input type="hidden" name="page" value="user" />
                    <input type="hidden" name="action" value="profile_post" />


<fieldset>
                <label for="countryId"><?php _e('Country', 'realestate'); ?></label>
                <?php ItemForm::country_select(osc_get_countries(), osc_user()) ; ?>
            </div>
            <div class="row ui-row-text">
                <label for="regionId"><?php _e('Region', 'realestate'); ?></label>
               <?php ItemForm::region_select(osc_get_regions(osc_user_country()), osc_user()) ; ?>
            </div>
            <div class="row ui-row-text">
         <div class="row ui-row-text">
                <label for="city"><?php _e('City', 'realestate'); ?></label>
                <?php ItemForm::city_select(osc_get_cities(osc_user_region()), osc_user()) ; ?>
            </div>
            <div class="row ui-row-text">
                <label for="city"><?php _e('City Area', 'realestate'); ?></label>
                <?php ItemForm::city_area_text(osc_user()) ; ?>
            </div>
            <div class="row ui-row-text">
                <label for="address"><?php _e('Address', 'realestate'); ?></label>
                <?php ItemForm::address_text(osc_user()) ; ?>
            </div>


Убрал эти строки
<?php UserForm::location_javascript(); ?>
                <form action="<?php echo osc_base_url(true) ; ?>" method="post">
                    <input type="hidden" name="page" value="user" />
                    <input type="hidden" name="action" value="profile_post" />


А также убрал пробел
в самом низу, в последней строке:

function themeUiHook(){
    $('#plugin-hook select').each(function(){
        if($(this).parents('.tabbertab').length == 0){
            selectUi($(this));
        }
    });
    $('select[name="switch-language"]').trigger('change');
 
}


Стало:
    $('select[name="switch-language"]').trigger('change');
}


И все заработало

Ну, и конечно же в item-edit.php делаем тоже самое.
« Последнее редактирование: 16 Май 2014, 08:49:32 от i7p »

 


test