project_property_display_view.js 830 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Created by Zhong on 2017/11/24.
  3. */
  4. let projDisplayView = {
  5. datas: {},//just for view
  6. init:function () {
  7. this.datas = projectInfoObj.projectInfo.property.displaySetting;
  8. this.datas = this.datas === undefined ? { autoHeight: true, disPlayMainMaterial: true } : this.datas;
  9. $("#autoHeight").attr("checked",this.datas.autoHeight);
  10. $("#disPlayMainMaterial").attr("checked",this.datas.disPlayMainMaterial);
  11. //$('#disPlayMainMateria').prop('checked')
  12. },
  13. needUpdate: function(autoHeight, disPlayMainMaterial) {
  14. return autoHeight !== this.datas.autoHeight || disPlayMainMaterial !== this.datas.disPlayMainMaterial;
  15. }
  16. };
  17. $(document).ready(function () {
  18. $('#tab_display_setting').on('shown.bs.tab', function () {
  19. projDisplayView.init();
  20. });
  21. });