         # Change the current rule
         @BUS.set('currentruledecimal', rule)
 
-        # Load the generator
-        @BUS.broadcast('tabs.show.generator')
+        @modal.close()
 
 module.exports = Thumbnails
    # 
    constructor: (BUS)->
        @BUS = BUS
        @BUS.subscribe('thumbnails.run',
            ()=>
                @run()
                return
        )

    #
    # Show the rule thumbnails
    # 
    run: ()->
        # Setup the list of rules
        ruleList = [0..255]

        template_options = {
            ruleList:ruleList,
            path:@BUS.get('thumbnails.path')
        }

        # Clear the current thumbnails and populate it via Mustache template
        DOM.elemById('WOLFCAGE', 'MAIN_CONTAINER').innerHTML = Templates.thumbnails(template_options)

        thumbsElems = document.querySelectorAll('.' + DOM.getClass('THUMBNAILS', 'THUMB_BOX'))
        

###

DOM = require("./DOM.coffee")
Modal = require("./Modal.coffee")
Templates = require("./Templates.coffee")

class Thumbnails
