[Yt-svn] commit/yt: MatthewTurk: Change the event that field change gets fired by so that you don't have to
Bitbucket
commits-noreply at bitbucket.org
Thu Apr 21 10:22:11 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/a3d6e69dd6a7/
changeset: r4179:a3d6e69dd6a7
branch: yt
user: MatthewTurk
date: 2011-04-21 19:20:53
summary: Change the event that field change gets fired by so that you don't have to
de-focus ("blur") the combo box before it changes the field displayed.
affected #: 1 file (60 bytes)
--- a/yt/gui/reason/html/js/widget_plotwindow.js Thu Apr 21 10:59:23 2011 -0400
+++ b/yt/gui/reason/html/js/widget_plotwindow.js Thu Apr 21 13:20:53 2011 -0400
@@ -90,7 +90,7 @@
+ c.el.dom.width + ", "
+ c.el.dom.height + ")";
yt_rpc.ExtDirectREPL.execute(
- {code:cc, hide:false}, cell_finished);
+ {code:cc, hide:true}, cell_finished);
});
}
}
@@ -121,11 +121,12 @@
value:widget_data['initial_field'],
editable: false,
triggerAction: 'all',
- listeners: {change: function(form, newValue, oldValue) {
- alert(newValue);
+ validateOnBlur: false,
+ listeners: {select: function(combo, record, index) {
+ var newValue = record.data['field1'];
yt_rpc.ExtDirectREPL.execute(
{code:python_varname + '.set_current_field("' +
- newValue + '")', hide:true},
+ newValue + '")', hide:false},
cell_finished);
}}
}, {
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list