bugfix
This commit is contained in:
parent
e459801466
commit
041bd64294
@ -180,7 +180,7 @@ body {
|
||||
}
|
||||
|
||||
.inputbox {
|
||||
background-color: #ddd;
|
||||
background-color: #f8f8f8;
|
||||
border: 1px solid #ccc;
|
||||
padding: 10px;
|
||||
margin: 0 0 1em 0;
|
||||
|
@ -141,7 +141,7 @@ bricks.Form = class extends bricks.VBox {
|
||||
}
|
||||
]
|
||||
};
|
||||
var tbw = new bricks.Toolbar(tb_desc);
|
||||
var tbw = new bricks.IconTextBar(tb_desc);
|
||||
tbw.bind('command', this.command_handle.bind(this));
|
||||
box.add_widget(new bricks.Filler());
|
||||
box.add_widget(tbw);
|
||||
|
@ -120,7 +120,6 @@ bricks.UiStr =class extends bricks.UiType {
|
||||
this.dom_element.style.width = opts.width;
|
||||
}
|
||||
this.charsize_sizing();
|
||||
|
||||
}
|
||||
create(){
|
||||
var el = this._create('input');
|
||||
@ -147,8 +146,8 @@ bricks.UiStr =class extends bricks.UiType {
|
||||
if (this.opts.defaultVlaue)
|
||||
el.defaultValue = this.opts.defaultValue;
|
||||
this.reset()
|
||||
if (this.opts.tip)
|
||||
el.placeholder = bricks.app.i18n._(this.opts.tip);
|
||||
if (this.opts.placeholder)
|
||||
el.placeholder = bricks.app.i18n._(this.opts.placeholder);
|
||||
el.addEventListener('focus', this.onfocus.bind(this));
|
||||
el.addEventListener('onkeydown', this.onkeydown.bind(this));
|
||||
el.addEventListener('blur', this.onblur.bind(this));
|
||||
|
@ -56,7 +56,7 @@
|
||||
{
|
||||
"widgettype":"Form",
|
||||
"options":{
|
||||
"submit_url":"/ttt/ttt.dspy",
|
||||
"submit_url":"{{entire_url('ttt.dspy')}}",
|
||||
"title":"Test hahah Form",
|
||||
"description":"test input implemented",
|
||||
"fields":[
|
||||
|
8
examples/tt.dspy
Normal file
8
examples/tt.dspy
Normal file
@ -0,0 +1,8 @@
|
||||
info(params_kw)
|
||||
return {
|
||||
"widgettype":"Message",
|
||||
"options":{
|
||||
"title":"form data accepted",
|
||||
"message":json.dumps(params_kw)
|
||||
}
|
||||
}
|
8
examples/ttt.dspy
Normal file
8
examples/ttt.dspy
Normal file
@ -0,0 +1,8 @@
|
||||
info(params_kw)
|
||||
return {
|
||||
"widgettype":"Message",
|
||||
"options":{
|
||||
"title":"form data accepted",
|
||||
"message":json.dumps(params_kw)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user