The pager position in ddblack settings is not saved, when saving the settings. When setting it to bottom, after saving and going to edit it again, the default value top is back in the setting.

Comments

mahnster’s picture

I'm experiencing this problem too. It's the "Pager Settings" fields that aren't being saved, particularly "Pager" where you pick "Number pager" "Prev next pager" and "Image pager"...it always gets set back to "Image pager". I have to remember to set that again if I need to change any settings...quite annoying!

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

Cleaning up old issues.
Could not reproduce the issue with the example themes upright10p to upright60p

Maybe another slideshow theme name is used, for naming conventions see http://drupal.org/node/1247700

Nor4a’s picture

Do not know about D7, but in D6 this problem is not because the settings are not saved, but because the javascript (js/ddblock.admin.js) manipulates some fields including Pager position and does not set back the current value after the manipulation.

Thte fix is (starting at js/ddblock.admin.js - line 177):

   if (val.match("upright") == "upright") {
      if (!$.browser.mozilla) {
        var uprightPagerPositionOptions = {
          "top" : "Top",
	        "bottom" : "Bottom"
        }          
        $("#edit-pager-position-wrapper #edit-pager-position").removeOption(/./);        
        $("#edit-pager-position-wrapper #edit-pager-position").addOption(uprightPagerPositionOptions, false); // use true if you want to select the added options 
      }
      else {
        $("#edit-pager-position option[@value='top']").show();
        $("#edit-pager-position option[@value='right']").hide();
        $("#edit-pager-position option[@value='bottom']").show();
        $("#edit-pager-position option[@value='left']").hide();
        $("#edit-pager-position option[@value='both']").hide();
      }
      $("#ddblock-custom-template-settings-wrapper").hide();

      //ADD THIS LINE TO FIX THE SETTINGS DISSAPEARANCE:
      $('#edit-pager-position-wrapper #edit-pager-position').val(ddblockSettings.pagerPosition);

    }
    else { /* custom themes */