@@ -29682,7 +29682,7 @@ var AuthorActions = {
29682
29682
};
29683
29683
29684
29684
module.exports.AuthorActions = AuthorActions;
29685
- },{"../constants/BookConstants":179 ,"../dispatcher/AppDispatcher":180 }],163:[function(require,module,exports){
29685
+ },{"../constants/BookConstants":178 ,"../dispatcher/AppDispatcher":179 }],163:[function(require,module,exports){
29686
29686
var BookConstants = require('../constants/BookConstants')
29687
29687
var AppDispatcher = require('../dispatcher/AppDispatcher').AppDispatcher;
29688
29688
@@ -29739,20 +29739,7 @@ var BookActions = {
29739
29739
29740
29740
module.exports.BookActions = BookActions;
29741
29741
29742
- },{"../constants/BookConstants":179,"../dispatcher/AppDispatcher":180}],164:[function(require,module,exports){
29743
- var AppDispatcher = require('../dispatcher/AppDispatcher').AppDispatcher;
29744
- var BookConstants = require('../constants/BookConstants')
29745
-
29746
- var CategoryActions = {
29747
- count_stats: function() {
29748
- AppDispatcher.dispatch({
29749
- actionType: BookConstants.COUNT_STATS
29750
- });
29751
- }
29752
- };
29753
-
29754
- module.exports.CategoryActions = CategoryActions;
29755
- },{"../constants/BookConstants":179,"../dispatcher/AppDispatcher":180}],165:[function(require,module,exports){
29742
+ },{"../constants/BookConstants":178,"../dispatcher/AppDispatcher":179}],164:[function(require,module,exports){
29756
29743
var AppDispatcher = require('../dispatcher/AppDispatcher').AppDispatcher;
29757
29744
var BookConstants = require('../constants/BookConstants')
29758
29745
@@ -29778,7 +29765,7 @@ var MessageActions = {
29778
29765
};
29779
29766
29780
29767
module.exports.MessageActions = MessageActions;
29781
- },{"../constants/BookConstants":179 ,"../dispatcher/AppDispatcher":180 }],166 :[function(require,module,exports){
29768
+ },{"../constants/BookConstants":178 ,"../dispatcher/AppDispatcher":179 }],165 :[function(require,module,exports){
29782
29769
var React = require('react');
29783
29770
var AuthorActions = require('../actions/AuthorActions').AuthorActions;
29784
29771
@@ -29817,7 +29804,7 @@ var AuthorDialog = React.createClass({displayName: "AuthorDialog",
29817
29804
});
29818
29805
29819
29806
module.exports.AuthorDialog = AuthorDialog ;
29820
- },{"../actions/AuthorActions":162,"react":161}],167 :[function(require,module,exports){
29807
+ },{"../actions/AuthorActions":162,"react":161}],166 :[function(require,module,exports){
29821
29808
var React = require('react');
29822
29809
var DropDown = require('./DropDown.react').DropDown;
29823
29810
var AuthorDialog = require('./AuthorDialog.react').AuthorDialog;
@@ -29863,7 +29850,7 @@ var AuthorPanel = React.createClass({displayName: "AuthorPanel",
29863
29850
});
29864
29851
29865
29852
module.exports.AuthorPanel = AuthorPanel;
29866
- },{"../actions/AuthorActions":162,"./AuthorDialog.react":166 ,"./DropDown.react":174 ,"react":161}],168 :[function(require,module,exports){
29853
+ },{"../actions/AuthorActions":162,"./AuthorDialog.react":165 ,"./DropDown.react":173 ,"react":161}],167 :[function(require,module,exports){
29867
29854
var React = require('react');
29868
29855
var BookActions = require('../actions/BookActions').BookActions;
29869
29856
var DropDown = require('./DropDown.react.js').DropDown;
@@ -29956,7 +29943,7 @@ var BookForm = React.createClass({displayName: "BookForm",
29956
29943
29957
29944
module.exports.BookForm = BookForm;
29958
29945
29959
- },{"../actions/BookActions":163,"../stores/AuthorStore":181 ,"../stores/CategoryStore":183 ,"./AuthorPanel.react.js":167 ,"./ButtonPanel.react.js":172 ,"./DatePicker.react.js":173 ,"./DropDown.react.js":174 ,"./MessagePanel.react.js":175 ,"./StatPanel.react.js":178 ,"react":161}],169 :[function(require,module,exports){
29946
+ },{"../actions/BookActions":163,"../stores/AuthorStore":180 ,"../stores/CategoryStore":182 ,"./AuthorPanel.react.js":166 ,"./ButtonPanel.react.js":171 ,"./DatePicker.react.js":172 ,"./DropDown.react.js":173 ,"./MessagePanel.react.js":174 ,"./StatPanel.react.js":177 ,"react":161}],168 :[function(require,module,exports){
29960
29947
var React = require('react');
29961
29948
var BookStore = require('../stores/BookStore').BookStore;
29962
29949
var BookActions = require('../actions/BookActions').BookActions;
@@ -29987,8 +29974,7 @@ var BookPanel = React.createClass({displayName: "BookPanel",
29987
29974
),
29988
29975
React.createElement("div", {className: "one-half column"},
29989
29976
React.createElement(BookForm, {
29990
- book: this.state.editingBook,
29991
- message: this.state.message}
29977
+ book: this.state.editingBook}
29992
29978
)
29993
29979
),
29994
29980
React.createElement("br", null)
@@ -30009,7 +29995,7 @@ var BookPanel = React.createClass({displayName: "BookPanel",
30009
29995
30010
29996
module.exports.BookPanel = BookPanel ;
30011
29997
30012
- },{"../actions/BookActions":163,"../stores/BookStore":182 ,"./BookForm.react":168 ,"./BookTable.react":170 ,"./PagingPanel.react":176 ,"./SearchPanel.react":177 ,"react":161}],170 :[function(require,module,exports){
29998
+ },{"../actions/BookActions":163,"../stores/BookStore":181 ,"./BookForm.react":167 ,"./BookTable.react":169 ,"./PagingPanel.react":175 ,"./SearchPanel.react":176 ,"react":161}],169 :[function(require,module,exports){
30013
29999
var React = require('react');
30014
30000
var BookTableRow = require('./BookTableRow.react').BookTableRow;
30015
30001
var BookActions = require('../actions/BookActions').BookActions;
@@ -30051,7 +30037,7 @@ var BookTable = React.createClass({displayName: "BookTable",
30051
30037
30052
30038
module.exports.BookTable = BookTable ;
30053
30039
30054
- },{"../actions/BookActions":163,"./BookTableRow.react":171 ,"react":161}],171 :[function(require,module,exports){
30040
+ },{"../actions/BookActions":163,"./BookTableRow.react":170 ,"react":161}],170 :[function(require,module,exports){
30055
30041
var React = require('react');
30056
30042
var BookActions = require('../actions/BookActions').BookActions;
30057
30043
@@ -30076,7 +30062,7 @@ var BookTableRow = React.createClass({displayName: "BookTableRow",
30076
30062
30077
30063
module.exports.BookTableRow = BookTableRow;
30078
30064
30079
- },{"../actions/BookActions":163,"react":161}],172 :[function(require,module,exports){
30065
+ },{"../actions/BookActions":163,"react":161}],171 :[function(require,module,exports){
30080
30066
var React = require('react');
30081
30067
var BookActions = require('../actions/BookActions').BookActions;
30082
30068
@@ -30104,7 +30090,7 @@ var ButtonPanel = React.createClass({displayName: "ButtonPanel",
30104
30090
30105
30091
module.exports.ButtonPanel = ButtonPanel;
30106
30092
30107
- },{"../actions/BookActions":163,"react":161}],173 :[function(require,module,exports){
30093
+ },{"../actions/BookActions":163,"react":161}],172 :[function(require,module,exports){
30108
30094
var React = require('react');
30109
30095
30110
30096
var DatePicker = React.createClass({displayName: "DatePicker",
@@ -30127,7 +30113,7 @@ var DatePicker = React.createClass({displayName: "DatePicker",
30127
30113
});
30128
30114
30129
30115
module.exports.DatePicker = DatePicker ;
30130
- },{"react":161}],174 :[function(require,module,exports){
30116
+ },{"react":161}],173 :[function(require,module,exports){
30131
30117
var React = require('react');
30132
30118
30133
30119
var DropDown = React.createClass({displayName: "DropDown",
@@ -30154,7 +30140,7 @@ var DropDown = React.createClass({displayName: "DropDown",
30154
30140
30155
30141
module.exports.DropDown = DropDown;
30156
30142
30157
- },{"react":161}],175 :[function(require,module,exports){
30143
+ },{"react":161}],174 :[function(require,module,exports){
30158
30144
var React = require('react');
30159
30145
var MessageStore = require('../stores/MessageStore').MessageStore;
30160
30146
@@ -30185,7 +30171,7 @@ var MessagePanel = React.createClass({displayName: "MessagePanel",
30185
30171
30186
30172
module.exports.MessagePanel = MessagePanel;
30187
30173
30188
- },{"../stores/MessageStore":184 ,"react":161}],176 :[function(require,module,exports){
30174
+ },{"../stores/MessageStore":183 ,"react":161}],175 :[function(require,module,exports){
30189
30175
var React = require('react');
30190
30176
var BookActions = require('../actions/BookActions').BookActions;
30191
30177
@@ -30215,7 +30201,7 @@ var PagingPanel = React.createClass({displayName: "PagingPanel",
30215
30201
30216
30202
module.exports.PagingPanel = PagingPanel;
30217
30203
30218
- },{"../actions/BookActions":163,"react":161}],177 :[function(require,module,exports){
30204
+ },{"../actions/BookActions":163,"react":161}],176 :[function(require,module,exports){
30219
30205
var React = require('react');
30220
30206
var BookActions = require('../actions/BookActions').BookActions;
30221
30207
@@ -30263,7 +30249,7 @@ var SearchPanel = React.createClass({displayName: "SearchPanel",
30263
30249
30264
30250
module.exports.SearchPanel = SearchPanel;
30265
30251
30266
- },{"../actions/BookActions":163,"react":161}],178 :[function(require,module,exports){
30252
+ },{"../actions/BookActions":163,"react":161}],177 :[function(require,module,exports){
30267
30253
var React = require('react');
30268
30254
var BookStore = require('../stores/BookStore').BookStore;
30269
30255
var AuthorStore = require('../stores/AuthorStore').AuthorStore;
@@ -30314,7 +30300,7 @@ var StatPanel = React.createClass({displayName: "StatPanel",
30314
30300
});
30315
30301
30316
30302
module.exports.StatPanel = StatPanel ;
30317
- },{"../stores/AuthorStore":181 ,"../stores/BookStore":182 ,"react":161}],179 :[function(require,module,exports){
30303
+ },{"../stores/AuthorStore":180 ,"../stores/BookStore":181 ,"react":161}],178 :[function(require,module,exports){
30318
30304
30319
30305
module.exports = {
30320
30306
BOOK_CHANGE: 'BOOK_CHANGE',
@@ -30334,13 +30320,13 @@ module.exports = {
30334
30320
AUTHOR_DELETE_OK: 'AUTHOR_DELETE_OK'
30335
30321
};
30336
30322
30337
- },{}],180 :[function(require,module,exports){
30323
+ },{}],179 :[function(require,module,exports){
30338
30324
var Dispatcher = require('flux').Dispatcher;
30339
30325
var AppDispatcher = new Dispatcher();
30340
30326
30341
30327
module.exports.AppDispatcher = AppDispatcher;
30342
30328
30343
- },{"flux":3}],181 :[function(require,module,exports){
30329
+ },{"flux":3}],180 :[function(require,module,exports){
30344
30330
var $ = require('jquery');
30345
30331
var EventEmitter = require('events').EventEmitter;
30346
30332
var AppDispatcher = require('../dispatcher/AppDispatcher').AppDispatcher;
@@ -30453,7 +30439,7 @@ AuthorStore.dispatchToken = AppDispatcher.register(function(action) {
30453
30439
module.exports.AuthorStore = AuthorStore;
30454
30440
module.exports.loadAuthors = _load_authors;
30455
30441
30456
- },{"../actions/AuthorActions":162,"../actions/MessageActions":165 ,"../constants/BookConstants":179 ,"../dispatcher/AppDispatcher":180 ,"events":1,"jquery":6}],182 :[function(require,module,exports){
30442
+ },{"../actions/AuthorActions":162,"../actions/MessageActions":164 ,"../constants/BookConstants":178 ,"../dispatcher/AppDispatcher":179 ,"events":1,"jquery":6}],181 :[function(require,module,exports){
30457
30443
var $ = require('jquery');
30458
30444
var EventEmitter = require('events').EventEmitter;
30459
30445
var AppDispatcher = require('../dispatcher/AppDispatcher').AppDispatcher;
@@ -30647,7 +30633,6 @@ BookStore.dispatchToken = AppDispatcher.register(function(action) {
30647
30633
_search();
30648
30634
break;
30649
30635
case BookConstants.AUTHOR_DELETE_OK:
30650
- console.log("AUTTHOR DEL OK");
30651
30636
_search();
30652
30637
break;
30653
30638
case BookConstants.BOOK_SORT:
@@ -30668,12 +30653,11 @@ BookStore.dispatchToken = AppDispatcher.register(function(action) {
30668
30653
module.exports.BookStore = BookStore;
30669
30654
module.exports.reloadBooks = _reloadBooks;
30670
30655
30671
- },{"../actions/MessageActions":165 ,"../constants/BookConstants":179 ,"../dispatcher/AppDispatcher":180 ,"events":1,"jquery":6}],183 :[function(require,module,exports){
30656
+ },{"../actions/MessageActions":164 ,"../constants/BookConstants":178 ,"../dispatcher/AppDispatcher":179 ,"events":1,"jquery":6}],182 :[function(require,module,exports){
30672
30657
var $ = require('jquery');
30673
30658
var EventEmitter = require('events').EventEmitter;
30674
30659
var AppDispatcher = require('../dispatcher/AppDispatcher').AppDispatcher;
30675
30660
var BookConstants = require('../constants/BookConstants');
30676
- var CategoryActions = require('../actions/CategoryActions').CategoryActions;
30677
30661
30678
30662
var _state = {
30679
30663
categories: [],
@@ -30699,8 +30683,6 @@ var _load_categories = function() {
30699
30683
},
30700
30684
error: function(xhr, status, err) {
30701
30685
console.error(this.props.url, status, err.toString());
30702
- _state.message = err.toString();
30703
- CategoryStore.emitChange();
30704
30686
}
30705
30687
});
30706
30688
};
@@ -30715,10 +30697,6 @@ var _load_subcategories = function(cat) {
30715
30697
if(_subcat_cache[cat]) {
30716
30698
_state.subcategories = _subcat_cache[cat] ;
30717
30699
CategoryStore.emitChange();
30718
- // The action in a different call
30719
- setTimeout(function() {
30720
- CategoryActions.count_stats();
30721
- }, 0);
30722
30700
}
30723
30701
$.ajax({
30724
30702
url: _props.subcategories_url+'?category='+cat,
@@ -30728,12 +30706,9 @@ var _load_subcategories = function(cat) {
30728
30706
_state.subcategories = data;
30729
30707
_subcat_cache[cat] = data;
30730
30708
CategoryStore.emitChange();
30731
- CategoryActions.count_stats()
30732
30709
},
30733
30710
error: function(xhr, status, err) {
30734
30711
console.error(this.props.url, status, err.toString());
30735
- _state.message = err.toString();
30736
- CategoryStore.emitChange();
30737
30712
}
30738
30713
});
30739
30714
};
@@ -30758,10 +30733,7 @@ CategoryStore.dispatchToken = AppDispatcher.register(function(action) {
30758
30733
switch(action.actionType) {
30759
30734
case BookConstants.BOOK_EDIT:
30760
30735
case BookConstants.BOOK_CHANGE:
30761
- //if(action.book.category!=_current_cat) {
30762
- _load_subcategories(action.book.category);
30763
- // _current_cat=action.book.category
30764
- //}
30736
+ _load_subcategories(action.book.category);
30765
30737
break;
30766
30738
case BookConstants.BOOK_EDIT_CANCEL:
30767
30739
_state.subcategories = [];
@@ -30775,7 +30747,7 @@ CategoryStore.dispatchToken = AppDispatcher.register(function(action) {
30775
30747
module.exports.CategoryStore = CategoryStore;
30776
30748
module.exports.loadCategories = _load_categories;
30777
30749
30778
- },{"../actions/CategoryActions":164,"../ constants/BookConstants":179 ,"../dispatcher/AppDispatcher":180 ,"events":1,"jquery":6}],184 :[function(require,module,exports){
30750
+ },{"../constants/BookConstants":178 ,"../dispatcher/AppDispatcher":179 ,"events":1,"jquery":6}],183 :[function(require,module,exports){
30779
30751
var $ = require('jquery');
30780
30752
var EventEmitter = require('events').EventEmitter;
30781
30753
var AppDispatcher = require('../dispatcher/AppDispatcher').AppDispatcher;
@@ -30815,10 +30787,10 @@ MessageStore.dispatchToken = AppDispatcher.register(function(action) {
30815
30787
30816
30788
module.exports.MessageStore = MessageStore;
30817
30789
30818
- },{"../constants/BookConstants":179 ,"../dispatcher/AppDispatcher":180 ,"events":1,"jquery":6}],185 :[function(require,module,exports){
30790
+ },{"../constants/BookConstants":178 ,"../dispatcher/AppDispatcher":179 ,"events":1,"jquery":6}],184 :[function(require,module,exports){
30819
30791
var React = require('react');
30820
30792
var BookPanel = require('./components/BookPanel.react').BookPanel;
30821
30793
30822
30794
React.render(React.createElement(BookPanel, null), document.getElementById('content'));
30823
30795
30824
- },{"./components/BookPanel.react":169 ,"react":161}]},{},[185 ]);
30796
+ },{"./components/BookPanel.react":168 ,"react":161}]},{},[184 ]);
0 commit comments