Sha256: eb79586615a9509c396df35d52df9f4b95ceba507034a4111794f7b743dddaff

Contents?: true

Size: 359 Bytes

Versions: 83

Compression:

Stored size: 359 Bytes

Contents

Tenon.features.nestedLists = {
  setSubpageTitleSize: function () {
    $.each($('li.subpage'), function() {
      var parentSize = $(this).parents('li.subpage').length,
        setWidth = 300 - (parentSize * 10) + 'px',
        padding = parentSize * 10;
      $(this).find('div.item-title').css({width: setWidth, paddingLeft: padding + 'px'});
    });
  }
}

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
tenon-1.1.8 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.1.7 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.1.6 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.1.5 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.1.4 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.1.3 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.1.2 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.1.1 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.76 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.75 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.74 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.73 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.72 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.71 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.70 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.69 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.68 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.67 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.66 app/assets/javascripts/tenon/features/nested_lists.js
tenon-1.0.65 app/assets/javascripts/tenon/features/nested_lists.js