New: Many UI Updates and Performance Tweaks

This commit is contained in:
Qstick
2019-04-12 23:25:58 -04:00
parent b24a40797f
commit 6275737ced
389 changed files with 7961 additions and 5635 deletions
@@ -1,5 +1,5 @@
import $ from 'jquery';
import { batchActions } from 'redux-batched-actions';
import createAjaxRequest from 'Utilities/createAjaxRequest';
import getSectionState from 'Utilities/State/getSectionState';
import { set, update } from '../baseActions';
@@ -10,12 +10,12 @@ function createSaveHandler(section, url) {
const state = getSectionState(getState(), section, true);
const saveData = Object.assign({}, state.item, state.pendingChanges, payload);
const promise = $.ajax({
const promise = createAjaxRequest({
url,
method: 'PUT',
dataType: 'json',
data: JSON.stringify(saveData)
});
}).request;
promise.done((data) => {
dispatch(batchActions([