Jason Grout
a8c8c2a5fd
General cleanup of base.js, including indentation fixes and adding view callbacks to the save options dictionary.
2014-01-16 10:57:11 +00:00
Jason Grout
00472333ec
log the error stack for a kernel javascript error message
2014-01-16 10:57:11 +00:00
Jason Grout
7810c78aea
Fix visible attribute for the very first render
2014-01-16 10:57:11 +00:00
Jason Grout
9b1a0d70a2
fix a handle_status handler
2014-01-16 10:57:11 +00:00
Jason Grout
1bf8da0734
Note todos for widgets
2014-01-16 10:57:10 +00:00
Jason Grout
38f0135522
Delete the snapshot message handler
2014-01-16 10:57:10 +00:00
Jason Grout
9a4c5957c3
Store views in the models and store child views in the views
2014-01-16 10:57:10 +00:00
Jason Grout
7431fa37dd
Make updates more granular for widgets
2014-01-16 10:57:10 +00:00
Jason Grout
641a5af70f
Move all references to cells to the view objects.
2014-01-16 10:57:10 +00:00
Jason Grout
45206783c2
Delete unnecessary check for comm object
2014-01-16 10:57:10 +00:00
Jason Grout
41170f7471
Change accordion to use a children attribute
2014-01-16 10:57:10 +00:00
Jason Grout
18beaff887
Remove unused code and debugging statements
2014-01-16 10:57:10 +00:00
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.
2014-01-16 10:57:10 +00:00
Jason Grout
ad1e23bfc2
Intermediate changes to javascript side of backbone widgets
2014-01-16 10:57:10 +00:00
Jonathan Frederic
3361826b5a
Added require.js shims for underscore and backbone
...
This is necessary since underscore and backbone are no longer AMD
modules.
2014-01-16 10:57:10 +00:00
Jonathan Frederic
b588a56f76
Moved touch logic out of model into view.
...
View now updates using backbone events.
2014-01-16 10:57:10 +00:00
Jonathan Frederic
a2c951d9b0
s/display/created for display_view stuff
2014-01-16 10:57:09 +00:00
Jonathan Frederic
d4b6823a49
Removed unused that from widget manager
2014-01-16 10:57:09 +00:00
Jonathan Frederic
73380ca442
Fixed nonregistered model bug in wiget manager
2014-01-16 10:57:09 +00:00
Jonathan Frederic
3c866ea412
Made widget model state update function public
2014-01-16 10:57:09 +00:00
Jonathan Frederic
8ceb29796a
Made display_view a public method.
2014-01-16 10:57:09 +00:00
Jonathan Frederic
19e9cee437
Fix, require.js needs return of widget manager for other widgets
2014-01-16 10:57:09 +00:00
Jonathan Frederic
d7c0498b13
renamed: widget.js -> widgetmanager.js
2014-01-16 10:57:09 +00:00
Jonathan Frederic
3d7557b740
Moved base widget model and view into widgets/base.js
2014-01-16 10:57:09 +00:00
Jonathan Frederic
3a936676dc
Removed comm dependency of widget model and view
2014-01-16 10:57:09 +00:00
Jonathan Frederic
8120778e5a
Fixed some spacing in widget.js
2014-01-16 10:57:09 +00:00
Jonathan Frederic
5678617d8f
Fixed context of onclick callbacks selection widget views
2014-01-16 10:57:09 +00:00
Jonathan Frederic
4e3b2b3e94
jslint /widgets
2014-01-16 10:57:08 +00:00
Jonathan Frederic
3bc9d12eb8
jshint widget.js
2014-01-16 10:57:08 +00:00
Jonathan Frederic
e9bf942375
Fixed backbone event handling for accordion view
2014-01-16 10:57:08 +00:00
Jonathan Frederic
fbaeb9bb20
Fixed flushed messages not getting sent with new 'method' message tag
2014-01-16 10:57:07 +00:00
Jonathan Frederic
1b02e8f607
Add ImageWidget
2014-01-16 10:57:07 +00:00
Jonathan Frederic
186e756da9
Remove uneccessary lines in String.js
2014-01-16 10:57:07 +00:00
Jonathan Frederic
a6e5ec942c
Added LatexView
2014-01-16 10:57:07 +00:00
Jonathan Frederic
b656f34c48
s/LabelView/HTMLView
2014-01-16 10:57:07 +00:00
Jonathan Frederic
fff6263840
Fab CSS
2014-01-16 10:57:07 +00:00
Jonathan Frederic
d21426d461
- Fixed CSS so it also applies to widgets within modals
...
- Added docked modal style
2014-01-16 10:57:07 +00:00
Jonathan Frederic
32a8d43afc
- ModalView can now be docked and undocked
...
- Clicking on a ModalView will bring it to the front
2014-01-16 10:57:07 +00:00
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.
2014-01-16 10:57:06 +00:00
Jonathan Frederic
8e1c52382c
Added method
property to messages from the front-end
2014-01-16 10:57:06 +00:00
Jonathan Frederic
d371e3772a
Make selector property of the add and remove class packets optional.
2014-01-16 10:57:06 +00:00
Jonathan Frederic
d69e957b9a
Added support for disabled flag to button widget.
2014-01-16 10:57:06 +00:00
Jonathan Frederic
1536c45955
Replace model 'update' event with the backbone 'sync' event, added in 1.0
2014-01-16 10:57:05 +00:00
Jonathan Frederic
dd31af4462
Do not vertically center modal
2014-01-16 10:57:05 +00:00
Jonathan Frederic
515f0d1b0f
Fixed modal centering code
2014-01-16 10:57:05 +00:00
Jonathan Frederic
c31ad5cf78
Added custom selector logic to modal view
2014-01-16 10:57:05 +00:00
Jonathan Frederic
1fb4340503
Moved flexible box model attrs out of Container and Modal js
...
into a common function
2014-01-16 10:57:05 +00:00
Jonathan Frederic
8b08e1c53c
Center modal view on show
2014-01-16 10:57:05 +00:00
Jonathan Frederic
e36353c152
Fab CSS
2014-01-16 10:57:04 +00:00
Jonathan Frederic
f9f84fc076
Removed max height from widget modal body
2014-01-16 10:57:04 +00:00