download search.js
Language: JavaScript
LOC: 12
Project Info
Divmod
Server: Divmod
Type: svn
...ntissa\xmantissa\static\js\
   initialize.js
   search.js
   shell.js
   signup.js

// import Nevow
// import Nevow.Athena

// import Mantissa

Mantissa.Search.Search = Nevow.Athena.Widget.subclass('Mantissa.Search.Search');
Mantissa.Search.Search.methods(
    function __init__(self, node) {
        Mantissa.Search.Search.upcall(self, '__init__', node);
        self.resultsContainer = self.nodeByAttribute('class', 'results-container');
    },

    function search(self, term) {
        self.callRemote('search', term).addCallback(function(result) {
            Divmod.Runtime.theRuntime.setNodeContent(
                self.resultsContainer, result);
        });
    });

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us