• I’m seeing an alert every time I save setting and load the plug-in page in the backend. Is this indicative of a problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author cdtoews

    (@cdtoews)

    Looks like that’s related to the backend not knowing what Page Layout is selected. Have you selected a Page layout? That’s the top item on the plugin page. If you have selected one, change the selection, save, then change it back to what you want, and save again.

    Thread Starter reflctngod

    (@reflctngod)

    Yes, I selected each one and saved when I installed the plugin, just to see what the layouts looked like with our meetings in it. Wow! These are so great! Just what we needed!

    I took a look at admin-gen.php (lines 114 – 115), where the error is thrown and it seem like these lines might be too general.

    var x = document.getElementById("tsmp_layout").selectedIndex;

    This line gets the index of whatever is selected in the tsmp_layout select input. (0, 1, or 2)

    var dropDownValue = document.getElementsByTagName("option")[x].value;

    This line gets the value of that index, but from all option tags on the page, not the options of your specific select. In my WordPress, there are other selects on the page rendered by other plugins.

    Could this work, maybe? (I tested it and it works on my installation). This assigns x to the select itself and just gets the value (i see the value and the text are the same)

    var x = document.getElementById("tsmp_layout");
    var dropDownValue = x.value;

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does the alert “What is going on?” Indicate a problem?’ is closed to new replies.