item groups now have order - start page is now item group 1 (configurable in globals)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
var AppDispatcher = require('../dispatcher/appDispatcher');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
var Globals = require('../globals');
|
||||
|
||||
var NavigationConstants = require('../constants/navigationConstants')
|
||||
var _ = require('underscore');
|
||||
@@ -15,8 +16,12 @@ var getGroupIdFromUrl = function() {
|
||||
var url = document.URL;
|
||||
var itemIdRegex = /grupa\/(\d+)\//g;
|
||||
var match = itemIdRegex.exec(url);
|
||||
console.log(match);
|
||||
return match[1];
|
||||
|
||||
var result = Globals.ItemGroupIdOfStartPage;
|
||||
if(match) {
|
||||
result = match[1]
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
// Extend ItemStore with EventEmitter to add eventing capabilities
|
||||
|
||||
Reference in New Issue
Block a user