Jason Grout
18beaff887
Remove unused code and debugging statements
12 years ago
Jason Grout
72f7d2fe09
Remove the automatic _children_attr and _children_lists_attr.
...
When serializing, any Widget object is encoded as its comm_id. The view should know how to deal with the attribute, and should know that the attribute is a comm_id.
12 years ago
Jason Grout
ad1e23bfc2
Intermediate changes to javascript side of backbone widgets
12 years ago
Jonathan Frederic
3361826b5a
Added require.js shims for underscore and backbone
...
This is necessary since underscore and backbone are no longer AMD
modules.
12 years ago
Jonathan Frederic
b588a56f76
Moved touch logic out of model into view.
...
View now updates using backbone events.
12 years ago
Jonathan Frederic
a2c951d9b0
s/display/created for display_view stuff
12 years ago
Jonathan Frederic
d4b6823a49
Removed unused that from widget manager
12 years ago
Jonathan Frederic
73380ca442
Fixed nonregistered model bug in wiget manager
12 years ago
Jonathan Frederic
3c866ea412
Made widget model state update function public
12 years ago
Jonathan Frederic
8ceb29796a
Made display_view a public method.
12 years ago
Jonathan Frederic
19e9cee437
Fix, require.js needs return of widget manager for other widgets
12 years ago
Jonathan Frederic
d7c0498b13
renamed: widget.js -> widgetmanager.js
12 years ago
Jonathan Frederic
3d7557b740
Moved base widget model and view into widgets/base.js
12 years ago
Jonathan Frederic
3a936676dc
Removed comm dependency of widget model and view
12 years ago
Jonathan Frederic
8120778e5a
Fixed some spacing in widget.js
12 years ago
Jonathan Frederic
5678617d8f
Fixed context of onclick callbacks selection widget views
12 years ago
Jonathan Frederic
4e3b2b3e94
jslint /widgets
12 years ago
Jonathan Frederic
3bc9d12eb8
jshint widget.js
12 years ago
Jonathan Frederic
e9bf942375
Fixed backbone event handling for accordion view
12 years ago
Jonathan Frederic
fbaeb9bb20
Fixed flushed messages not getting sent with new 'method' message tag
12 years ago
Jonathan Frederic
1b02e8f607
Add ImageWidget
12 years ago
Jonathan Frederic
186e756da9
Remove uneccessary lines in String.js
12 years ago
Jonathan Frederic
a6e5ec942c
Added LatexView
12 years ago
Jonathan Frederic
b656f34c48
s/LabelView/HTMLView
12 years ago
Jonathan Frederic
32a8d43afc
- ModalView can now be docked and undocked
...
- Clicking on a ModalView will bring it to the front
12 years ago
Jonathan Frederic
6cfdb5848a
Fix bug where a child view could be displayed in a
...
different cell if it's parent didn't exist in the
current cell but instead another cell.
12 years ago
Jonathan Frederic
8e1c52382c
Added `method` property to messages from the front-end
12 years ago
Jonathan Frederic
d371e3772a
Make selector property of the add and remove class packets optional.
12 years ago
Jonathan Frederic
d69e957b9a
Added support for disabled flag to button widget.
12 years ago
Jonathan Frederic
1536c45955
Replace model 'update' event with the backbone 'sync' event, added in 1.0
12 years ago
Jonathan Frederic
dd31af4462
Do not vertically center modal
12 years ago
Jonathan Frederic
515f0d1b0f
Fixed modal centering code
12 years ago
Jonathan Frederic
c31ad5cf78
Added custom selector logic to modal view
12 years ago
Jonathan Frederic
1fb4340503
Moved flexible box model attrs out of Container and Modal js
...
into a common function
12 years ago
Jonathan Frederic
8b08e1c53c
Center modal view on show
12 years ago
Jonathan Frederic
f9f84fc076
Removed max height from widget modal body
12 years ago
Jonathan Frederic
61bfddbd17
Fixed body container height not stretching to fill remainer of height
12 years ago
Jonathan Frederic
4e1e091648
Added ModalView
12 years ago
Jonathan Frederic
4333c84907
Fix scroll_to_bottom
12 years ago
Jonathan Frederic
02db32fe9a
Fix typo, static msg content c&p from button widget view.
12 years ago
Jonathan Frederic
4f663d896d
Made scroll to bottom use msgs
...
allow multiple msg handlers
added send to view to automatically hookup callbacks
changed send signature to optionally accept a cell to connect callbacks
12 years ago
Jonathan Frederic
cc96589afc
Changed on_submit to use custom messages instead of stateful communcation
12 years ago
Jonathan Frederic
10002f5a81
Changed button to use custom messages instead of state to communicate events.
12 years ago
Jonathan Frederic
c299022cc7
Changed add_class and remove_class to use messages instead of stateful communication
12 years ago
Jonathan Frederic
873d1d231e
Make sure DOM element ids start with alphabetic characters, not numeric.
12 years ago
Jonathan Frederic
00f72487c5
Use setElement to set the view's element properly.
12 years ago
Jonathan Frederic
0cd4226fde
Fixed typo in container construction.
12 years ago
Jonathan Frederic
f16f1d6537
Make sure backbone events fire.
...
If $el is set to something else, make sure all the backbone machinery
knows about the new DOM element.
12 years ago
Jonathan Frederic
d795654251
Add scroll_to_bottom method for TextAreaView (StringWidget).
12 years ago
Jonathan Frederic
9019b639d1
Fixed a bug that didn't allow callbacks to set a property
...
on the widget that triggered the callback.
12 years ago