1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed search-box at this page needs "focus active"

Discussion in 'Resolved Bug Reports' started by erich37, Jul 10, 2015.

  1. erich37

    erich37 Well-Known Member

  2. Mike

    Mike XenForo Developer Staff Member

    This is fixed now (for the next roll out), thanks.
     
  3. erich37

    erich37 Well-Known Member

    hmm...

    I do see the cursor blinking now, but there is no yellow background in the field ?
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    That's likely not going to be possible. It's a bit of a special case here. It's not a normal text input. We'll have a look at it but it's likely expected.
     
  5. batpool52!

    batpool52! Well-Known Member

    Adding this
    PHP:
                $textInput.on('focus', function(event)
                {
                    $(
    this).closest('div.taggingInput.textCtrl').addClass('activeTagInput');
                });

                
    $textInput.on('blur', function(event)
                {
                    $(
    this).closest('div.taggingInput.textCtrl').removeClass('activeTagInput');
                });
    to js/xenforo/full/tag.js after
    PHP:
    $textInput.closest('form').on('submit AutoValidationBeforeSubmit', function()
                {
                    var 
    val $textInput.val();
                    if (
    val.length)
                    {
                        
    $input.addTag(val, {uniquetrue});
                        
    $textInput.val('');
                    }
                });
    and then adding this
    PHP:
    div.taggingInput.textCtrl.activeTagInput
    {
        @
    property "textCtrlFocus";
        
    backgroundrgb(255,255,240url('@imagePath/xenforo/gradients/form-element-focus-25.png'repeat-x;
        
    border-top-colorrgb(150,150,150);
        
    border-bottom-colorrgb(230,230,230);
        @
    property "/textCtrlFocus";
    }
    to EXTRA.css or somewhere in xenforo.css gives the real input field like effect for boards with debug mode on :p
     

Share This Page