bugfix
This commit is contained in:
parent
684f0ad7cc
commit
935b1da0d0
@ -348,14 +348,15 @@ bricks.buildScriptHandler = function(w, target, rtdata, desc){
|
|||||||
return f.bind(target, target, params);
|
return f.bind(target, target, params);
|
||||||
}
|
}
|
||||||
bricks.buildDispatchEventHandler = function(w, target, rtdata, desc){
|
bricks.buildDispatchEventHandler = function(w, target, rtdata, desc){
|
||||||
|
var f = function(target, event_name, params, event){
|
||||||
|
console.log('target=', target, 'event_name=', event_name, 'params=', params, 'Arguments=', arguments);
|
||||||
|
target.dispatch(event_name, params);
|
||||||
|
}
|
||||||
var params = {};
|
var params = {};
|
||||||
bricks.extend(params, desc.params)
|
bricks.extend(params, desc.params)
|
||||||
bricks.extend(params, rtdata);
|
bricks.extend(params, rtdata);
|
||||||
params = bricks.apply_data(params, rtdata);
|
params = bricks.apply_data(params, rtdata);
|
||||||
var f = function(target, event_name, params){
|
return f.bind(target, target, desc.dispatch_event, params);
|
||||||
target.dispatch(event_name, params);
|
|
||||||
}
|
|
||||||
return f.bind(target, params);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bricks.getWidgetById = function(id, from_widget){
|
bricks.getWidgetById = function(id, from_widget){
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
"icon":"/bricks/imgs/submit.png",
|
"icon":"/bricks/imgs/submit.png",
|
||||||
"label":"test once",
|
"label":"test once",
|
||||||
"tooltip":"This is a joke too",
|
"tooltip":"This is a joke too",
|
||||||
|
"bgcolor":"#ff00ff",
|
||||||
|
"color":"#ffffff",
|
||||||
"nonepack":true,
|
"nonepack":true,
|
||||||
"orientation":"horizontal"
|
"orientation":"horizontal"
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
"widgettype":"Tabular",
|
"widgettype":"Tabular",
|
||||||
"options":{
|
"options":{
|
||||||
"data_url":"{{entire_url('./channels.dspy')}}",
|
"data_url":"{{entire_url('./channels.dspy')}}",
|
||||||
"content_url":"{{entire_url('play_channel.dspy')}}",
|
|
||||||
"content_view":{
|
"content_view":{
|
||||||
"id":"videoplayer",
|
"id":"videoplayer",
|
||||||
"widgettype":"Iframe",
|
"widgettype":"Iframe",
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
"widgettype":"Title1",
|
"widgettype":"Title1",
|
||||||
"options":{
|
"options":{
|
||||||
"text":"Pic Viewer",
|
"text":"Pic Viewer",
|
||||||
|
"color":"#ff0000",
|
||||||
|
"bgcolor":"#00ffff",
|
||||||
"dynsize":true,
|
"dynsize":true,
|
||||||
"i18n":true
|
"i18n":true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user