exports.resetBagOption = function () { Reactor.batch(function () { Reactor.dispatch(actionTypes.RESET_BAGOPTION, null ); exports.updateCustomerName(""); exports.updateCustomerComment(""); }); };
exports.setDialog = function (dialog) { Reactor.dispatch(actionTypes.SET_DIALOG,{dialog: dialog}); };
exports.updateCustomerName = function (name) { Reactor.dispatch(actionTypes.UPDATE_CUSTOMER_NAME, {name: name}); };
exports.updateCustomerComment = function (comment) { Reactor.dispatch(actionTypes.UPDATE_CUSTOMER_COMMENT, {comment: comment}); };
size && $.debounce(10, function () { Reactor.batch(function () { exports.setBagOptions({size: size}); exports.updateBagDataBasedOnSize(size); }); })();
exports.updateBagDataBasedOnSize = function (size) { Reactor.dispatch(actionTypes.UPDATE_BAGDATA, {size: size}); };
exports.toggleSizeChooser = function (mode) { Reactor.dispatch(actionTypes.TOGGLE_SIZECHOOSER, {mode: mode}); };
exports.togglePalette= function (type,isShow) { Reactor.dispatch(actionTypes.TOGGLE_PALETTE, {type: type,isShow: !!isShow}); };
exports.setBagOptions = function (options) { Reactor.dispatch(actionTypes.SET_BAG_OPTION, options); };