redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

required and fold fields don't animate

Open darknailblue opened this issue 12 years ago • 28 comments

It looks like in 3.1.0 they did and in 3.1.2 now they don't. Doesn't seem like any JavaScript error is being generated. However the fields appear properly after save.

darknailblue avatar Dec 15 '13 16:12 darknailblue

Can you post the specific error you're getting? I don't seem to be getting it in my dev environment.

evertiro avatar Dec 17 '13 05:12 evertiro

It's happening on the demo website aswell (to me, at least).

ghost avatar Dec 17 '13 09:12 ghost

@ghost1227 - I'm not sure how to be more specific...

darknailblue avatar Dec 18 '13 01:12 darknailblue

Im having the same problem too. I made a switch on/off button. Default state is "off". Heres what i want: if I click "on" button some fields will show automatically. and if i click "off" button fields will disappear. All effects should be javascript. Here's what really happens: if I click "on" button some fields doesn't show automatically. But if i save it as "on" next time the hidden fields show. What im trying to say is fields visibility doesn't change automatically when clicking on/off button, it only changes after saving. Please fix this bug soon im stuck in the middle of work because of this.

kowsar89 avatar Dec 19 '13 15:12 kowsar89

Are you using the latest push of Redux from Github? I am unable to replicate this. Let's make sure we're using the same version.

kprovance avatar Dec 19 '13 15:12 kprovance

Still happening to me with the latest one. Latest WP version aswell.

ghost avatar Dec 19 '13 16:12 ghost

@kprovance My version is 3.1.2 . I downloaded it yesterday

kowsar89 avatar Dec 19 '13 16:12 kowsar89

Yep switching does not animate. Right now I click the switch, then save settings and refresh the options panel to get the desired fold to appear visible.

xtrasmal avatar Dec 23 '13 09:12 xtrasmal

@dovy Any idea what might be causing this?

darknailblue avatar Dec 23 '13 15:12 darknailblue

I have the same issue, the required fields only works when you click the save button.

Maybe the wordpress update (v3.8) generate some errors on redux framework.

javierencalada avatar Dec 24 '13 03:12 javierencalada

May one of you who has this issue could post your config code. I still can't replicate this based on description alone.

kprovance avatar Dec 24 '13 04:12 kprovance

I have downloaded the zip files from the repository (redfux framework 3.1.4) with the sample-config.php and all fields with required options dont work.

You can check the demo: http://demo.reduxframework.com/wp-admin/admin.php?page=redux_options&tab=7, the new group field has a folding option and doesn't works too.

Edit: I'm using wp 3.8

javierencalada avatar Dec 24 '13 04:12 javierencalada

Yes even the demo site's sample-config.php doesn't work. I'll upload my project's config file if anybody still requires it

kowsar89 avatar Dec 24 '13 06:12 kowsar89

Thinking out loud here... Could this have to do with a change in class names?

darknailblue avatar Dec 24 '13 14:12 darknailblue

What browser are you using, where the effects are not working? I'm using FF 26, with no problems. I'm wondering if this may be a browser issue?

kprovance avatar Dec 25 '13 02:12 kprovance

Not working on any browser (latest Chrome, FF, IE) on Windows 8.1 for me.

ghost avatar Dec 25 '13 02:12 ghost

Perhaps it's a Win 8 issue. Have you check to make sure javascript it turned on?

kprovance avatar Dec 25 '13 05:12 kprovance

I'm using windows 7 and Firefox 26, still having the problem. Here is my theme's option file http://pastebin.com/dDd6N6W3

kowsar89 avatar Dec 25 '13 05:12 kowsar89

I have checked with dev_mode the redux.js file and the animation is commented:

        /*if(show == true && current.is('.hiddenFold')){
            current.css({
                display:'none'
            }).removeClass('hiddenFold').find('select, radio, input[type=checkbox]').trigger('change');
            current.slideDown(300);
        }else if(show == false  && !current.is('.hiddenFold')){
            current.css({
                display:''
            }).addClass('hiddenFold').find('select, radio, input[type=checkbox]').trigger('change');
            current.slideUp(300);
        }*/

Lines: 175 - 185 (redux.js)

Anyway, i think the animation was changed because now is slideup and before 3.1 was fadein.

javierencalada avatar Dec 25 '13 15:12 javierencalada

Uncommenting doesn't change the situation since it's the minified version that gets loaded, and not the normal one (but i could be wrong).

Merry Christmas, people!

ghost avatar Dec 26 '13 01:12 ghost