Jeremy Ruston
ed6fd475ab
Add 'default' attribute to button widget
...
This allows us to do things like tab controls properly.
2013-11-04 09:59:26 +00:00
Jeremy Ruston
8ab7a1dd8f
Only set the style of the button widget if the style attribute is specified
2013-11-04 09:58:56 +00:00
Jeremy Ruston
fd70aa8c45
Get rid of the qualifyTiddlerTitles hack
...
Now, finally, we can implement qualifyTiddlerTitles as a macro.
2013-11-02 15:42:24 +00:00
Jeremy Ruston
0b1f0a5fab
Refactor the list widget to get rid of some hacks
...
As promised.
2013-11-02 10:12:55 +00:00
Jeremy Ruston
51394e50e8
Get rid of the event handling in the tiddler widget
...
Much neater if each widget does as little as possible.
2013-11-02 10:12:22 +00:00
Jeremy Ruston
31ae8910c6
Fix animation behaviour of reveal widget
2013-11-02 09:21:11 +00:00
Jeremy Ruston
6a6f6c7713
Restored animations for the reveal widget
2013-11-01 17:23:08 +00:00
Jeremy Ruston
0b0fb0a145
Fixed refresh logic of element widget
2013-11-01 17:22:51 +00:00
Jeremy Ruston
6b6b444269
Fixed refresh logic of checkbox widget
2013-11-01 17:22:40 +00:00
Jeremy Ruston
363e90fca8
Remove version widget in favour of widget macro
2013-11-01 13:22:06 +00:00
Jeremy Ruston
4118afe9e8
Make the widget tree for the page accessible to the JS console
...
Now you can browse the render tree of widgets by inspecting
`$tw.pageWidgetNode` in the JS console
2013-11-01 12:44:03 +00:00
Jeremy Ruston
4f4d45a972
Fix problem with default attribute of edit-text widget
...
Setting `default=""` wasn't working
2013-11-01 12:43:23 +00:00
Jeremy Ruston
e870e28cf3
Remove unused wikified format from viewwidget
2013-10-31 22:01:12 +00:00
Jeremy Ruston
01a0c9481e
Remove unused class attribute from reveal widget
2013-10-31 21:59:53 +00:00
Jeremy Ruston
45f0f46fdf
Fix macrocall widget to not pass $name as a parameter
2013-10-31 21:59:37 +00:00
Jeremy Ruston
1ca473fd2f
Remove unused preserveCurrentTiddler attribute from list widget
2013-10-31 21:59:15 +00:00
Jeremy Ruston
1cc27b2598
Correct typo
2013-10-31 21:59:01 +00:00
Jeremy Ruston
0ec2cf20a9
Rename "focusSet" attribute of edit-text widget to "focusPopup"
2013-10-31 12:37:22 +00:00
Jeremy Ruston
4d4a84c5bf
Remove unused class attribute from edit-bitmap widget
2013-10-31 12:36:38 +00:00
Jeremy Ruston
4646ba4e30
Remove unused class attribute from checkbox widget
2013-10-30 16:28:57 +00:00
Jeremy Ruston
f9c95dda46
Allow browsing for multiple files at once
2013-10-30 16:05:49 +00:00
Jeremy Ruston
8084837f48
Fix problem with default text handling in edit-text widget
2013-10-30 14:27:55 +00:00
Jeremy Ruston
9e3618bdcf
Rename the 'title' attributes of various widgets to 'tiddler'
...
The change is to avoid confusion with the HTML 'title' attribute. The
name 'tiddler' better emphasises the purpose of the attribute, too.
2013-10-30 13:36:44 +00:00
Jeremy Ruston
05e73ee1da
Cope with localStorage not being available
...
IE10 doesn't allow localStorage for HTML pages loaded from the file://
protocol.
Boo.
2013-10-29 22:21:25 +00:00
Jeremy Ruston
d42fb673f8
Fix checkbox widget to update modified
and modifier
fields
2013-10-29 21:20:59 +00:00
Jeremy Ruston
654f48b14d
Fix problem with modal titles
2013-10-29 15:01:36 +00:00
Jeremy Ruston
731cbb8cd6
Switch from new_pageContainer
back to pageContainer
2013-10-29 15:01:27 +00:00
Jeremy Ruston
b4da65d1c9
Update fakedom to no longer add a newline after opening tags
...
The newline was being rendered within `<code>` elements.
2013-10-29 14:52:12 +00:00
Jeremy Ruston
14d7d5ea59
Use the new wiki.makeWidget() method where we can
2013-10-29 14:51:35 +00:00
Jeremy Ruston
4eebe7388d
Add a wiki.makeWidget() method
...
Encapsulates some logic that has been duplicated elsewhere.
2013-10-29 14:48:24 +00:00
Jeremy Ruston
371c8ab45a
Fix changed attribute detection in tiddler widget
2013-10-29 09:04:18 +00:00
Jeremy Ruston
bf48e6f8a1
Rename tiddlerTitle
variable to currentTiddler
2013-10-28 23:40:45 +00:00
Jeremy Ruston
b4b0eae4e5
Allow the foreignObject element in SVG to embed HTML via the body element
...
This change means that any `<body>` elements inside an SVG region of
the DOM tree will switch the namespace back to XHTML.
2013-10-28 15:05:19 +00:00
Jeremy Ruston
20f03de712
The big purge of the old widget mechanism
...
Getting rid of the old widget mechanism files finally gives us a payoff
for all the refactoring. Still a bit of tidying up to do, and we need
to re-introduce the animation mechanisms.
2013-10-27 22:55:36 +00:00
Jeremy Ruston
5610efff01
Update typedblock parser to use new widget mechanism
2013-10-27 22:53:22 +00:00
Jeremy Ruston
d84e398d7a
Fix problem when widgets don't have a parse tree node
2013-10-27 22:53:06 +00:00
Jeremy Ruston
c7d56361ee
Parse and render macro attributes, rather than using the raw text
2013-10-27 22:52:34 +00:00
Jeremy Ruston
d1108c7fcc
Remove inaccurate comments
2013-10-27 22:52:04 +00:00
Jeremy Ruston
b1208a8d37
Fix problem with getTiddlerLinks()
...
It was crashing if it encountered a link widget that didn't have a `to`
attribute.
2013-10-27 13:54:39 +00:00
Jeremy Ruston
3ad3cfd526
Bring back the bitmap editor widget
2013-10-26 13:13:55 +01:00
Jeremy Ruston
f8f524d378
Make sure the dragger cover properly covers the dragger
2013-10-26 10:29:52 +01:00
Jeremy Ruston
76faba2d9f
Get rid of the old tempwidget
2013-10-26 10:29:40 +01:00
Jeremy Ruston
98da59be7a
Extend the link widget to make the links draggable
2013-10-26 08:36:43 +01:00
Jeremy Ruston
05fc9848bb
Extend the dropzone widget to cope with dataTransfer objects (as well as files)
2013-10-26 08:36:31 +01:00
Jeremy Ruston
068befb24f
Refactor link widget with tidier event handler
2013-10-25 23:22:46 +01:00
Jeremy Ruston
ad518c181d
Add jsencoded view format
2013-10-25 23:00:43 +01:00
Jeremy Ruston
925e22c46f
Fix up the server command to use the new widget mechanism
2013-10-25 22:30:15 +01:00
Jeremy Ruston
bdcead624a
Add a changecount macro
2013-10-25 22:29:49 +01:00
Jeremy Ruston
b3ae45cbde
Invoke macros with this
set to the host widget
2013-10-25 22:29:28 +01:00
Jeremy Ruston
8fbc5759ad
Refactor widget.getVariable() to have better behaved parameters
2013-10-25 22:16:15 +01:00