Example #1
0
    def get_validation_js_info(self):
        r = TextBox.get_validation_js_info(self)
        me = 'document.getElementById("%s")' % self.get_html_id()

        return r + [{
            'msg': 'Invalid number',
            'validate': 'isNaN(%s)' % self.calljs_getvalue(),
            'onselect': me + '.focus()',
            'markitem': self.get_html_id()
        }]
 def get_validation_js_info(self):
     return TextBox.get_validation_js_info(self)
 def get_validation_js_info(self):
     return TextBox.get_validation_js_info(self)