Allow each mod to have a default version

When a visitor arrives at the site for the first time, this will
ensure they have a certain set of mods on/off. Right now, that means
IC2-Classic is off by default, and everything else is on.
This commit is contained in:
Andrew Miner
2015-03-10 09:57:23 -07:00
parent b1cfe9221e
commit ee75415729
8 changed files with 29 additions and 187 deletions
@@ -113,8 +113,6 @@ module.exports = class ItemPageController extends PageController
@$byline.fadeOut duration:Duration.fast
_refreshDescription: ->
logger.debug "refreshing description"
logger.debug "item.description: #{@model?.item?.description}"
description = @model.compileDescription()
if description?
@$descriptionPanel.html description
@@ -189,6 +187,4 @@ module.exports = class ItemPageController extends PageController
@model.item = item
item.fetch()
item.on Event.sync, =>
logger.debug "item loaded"
@refresh()
item.on Event.sync, => @refresh()
@@ -6,7 +6,6 @@ All rights reserved.
###
BaseController = require './base_controller'
{DefaultMods} = require '../constants'
{Duration} = require '../constants'
Mod = require '../models/mod'
ModSelectorController = require './mod_selector_controller'