TableTools 2.1.4 Button Images don't load

TableTools 2.1.4 Button Images don't load

GiladDGiladD Posts: 9Questions: 0Answers: 0
edited February 2013 in Plug-ins
Hi all,

I've enabled the button images section in TableTools.css but the images never load...
I suspected there's a bug in the CSS since the background-URLs were not quoted, but that didn't help either.
Any ideas on how I can get this to work once more (it worked fine with 2.0.0)?

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Those styles haven't been updated for the change in the tag used for the buttons. They should be:

    [code]

    a.DTTT_button_csv,
    a.DTTT_button_xls,
    a.DTTT_button_copy,
    a.DTTT_button_pdf,
    a.DTTT_button_print {
    padding-right: 0px;
    }

    a.DTTT_button_csv span,
    a.DTTT_button_xls span,
    a.DTTT_button_copy span,
    a.DTTT_button_pdf span,
    a.DTTT_button_print span {
    display: inline-block;
    height: 24px;
    line-height: 24px;
    padding-right: 30px;
    }


    a.DTTT_button_csv span { background: url(../images/csv.png) no-repeat bottom right; }
    a.DTTT_button_csv:hover span { background: url(../images/csv_hover.png) no-repeat center right; }

    a.DTTT_button_xls span { background: url(../images/xls.png) no-repeat center right; }
    a.DTTT_button_xls:hover span { background: #f0f0f0 url(../images/xls_hover.png) no-repeat center right; }

    a.DTTT_button_copy span { background: url(../images/copy.png) no-repeat center right; }
    a.DTTT_button_copy:hover span { background: #f0f0f0 url(../images/copy_hover.png) no-repeat center right; }

    a.DTTT_button_pdf span { background: url(../images/pdf.png) no-repeat center right; }
    a.DTTT_button_pdf:hover span { background: #f0f0f0 url(../images/pdf_hover.png) no-repeat center right; }

    a.DTTT_button_print span { background: url(../images/print.png) no-repeat center right; }
    a.DTTT_button_print:hover span { background: #f0f0f0 url(../images/print_hover.png) no-repeat center right; }
    [/code]

    I've just committed that change and it will be in the next release, or replace the old styles with the ones above in your local copy :-)

    Allan
  • GiladDGiladD Posts: 9Questions: 0Answers: 0
    Thanks, Allan, that helped... but now I'm seeing another styling problem. The caption next to the Search box appears as a link when I hover into the table or header areas.
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Please link to a test case showing the problem.

    Allan
This discussion has been closed.