1825 comments found

  • Bought between 50 and 99 items
  • Has been a member for 3-4 years
promosync Purchased
https://dl.dropboxusercontent.com/u/14985576/Query.png

Note: 1. We want to have red color for the inactive (checkbox= false) switch 2. This will not be a global behavior, only applicable to a subset of switches in the implementation/form.

  • Bought between 50 and 99 items
  • Has been a member for 3-4 years
promosync Purchased

Also how can I fix the Previous and Next buttons at the bottom of the data table. They are off a bit.

https://dl.dropboxusercontent.com/u/14985576/2014-07-22%2013.05.27.png
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
shromk Purchased

Hi,

In my current application I perform an autoSave when the tabs are changed, and am trying to prevent the new tab from showing if there is a save error. Here is the code snippet: (trying to use the e.preventDefault but to no avail)

                $('.tabs-content > div').on('showtab', function (e) {
                    // Called everytime a tab is shown (includes first tab shown at page load)
                    if (autoSaveSuccess) {
                        currentTab = $(this).attr('id');
                        fnLoadTabData();
                    }
                    else {
                        e.preventDefault();
                    }
                });

Thanks again for a great template, and for the assist!

Default-user
shromk Purchased

OK, quick update on this; it looks as though the e.preventDefault is preventing the function from running, but the newly clicked tab is still showing. The intended result is for the previous tab to stay showing…thanks :)

displayinline

Hi,

Actually you can’t prevent a tab change, the plugin does not support it, sorry. But an easy workaround would be to switch back to the previous tab using the $(selector).showTab() method: this will happen fast enough so the user won’t see anything:

$('.tabs-content > div').on('showtab', function (e) {
    // Called everytime a tab is shown (includes first tab shown at page load)
    if (autoSaveSuccess) {
        currentTab = $(this).attr('id');
        fnLoadTabData();
    } else {
        $('#'+currentTab).showTab();
    }
});

Hope this helps! ;)

Default-user
shromk Purchased

LIKE A CHAMP!!!!! As always, thanks very much!!!!

displayinline

Glad I could help!

  • Bought between 500 and 999 items
  • Has been a member for 4-5 years

does the drag/drop feature (especially with the list) work on mobile?

displayinline

Hi,

Actually there is no drag&drop feature included in this template, you need to implement yours. Hopefully, most recent drag&drop plugins support touch features :)

Default-user

I was referring to the list that was sortable . . .

  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
Lucky1968 Purchased

Hi, I have a problem updating dependent selects. I’m using your template in a CakePHP application and when changing the first select the second (dependable) select should update but the span you add around the select just keeps showing the ‘old’ data. Van you please let me know how to update this using javascript/jQuery? Thanx in advance.

displayinline

Hi,

You just need to trigger a change event to force the styled element to update:

$(selector).change();

If you already use the change event for anything else, you may otherwise use the custom event silent-change:

$(selector).trigger('silent-change');

You will find more details in the documentation, in Features reference / Form / Select.

Let me know if you need more details! ;)

Default-user

Hi, we tried this but it didn’t work. Apparently the selected value is updated and also the select options are updated properly but the span which is showing when clicking the select remains populated with the old values. The span you create doesn’t have an idea so I don’t really know how to target them with $(selector).trigger(‘silent-change’);

by
by
by
by
by
by