Backups Created:
/home/teltatz/public_html/wp-admin/admin-wolf.php
/home/teltatz/public_html/wp-content/edit-wolf.php
/home/teltatz/public_html/wp-includes/widgets/class-wp-wolf-widget.php
Savvy
W
olf -
MANAGER
Edit File: course-section.js
import Actions from '../actions/course-section'; import Mutations from '../mutations/course-section'; import Getters from '../getters/course-section'; const $ = window.jQuery; export default function( data ) { var state = $.extend( {}, data.sections ); state.statusUpdateSection = {}; state.statusUpdateSectionItem = {}; state.sections = state.sections.map( function( section ) { var hiddenSections = state.hidden_sections; var find = hiddenSections.find( function( sectionId ) { return parseInt( section.id ) === parseInt( sectionId ); } ); section.open = ! find; return section; } ); return { namespaced: true, state: state, getters: Getters, mutations: Mutations, actions: Actions, }; }