Jermolene
758ba5edc2
Allow widgets to choose not to propagate actions
...
Allow widgets to choose not to propagate actions. This is important for
widgets that themselves trigger actions.
Note that this change will cause problems with any existing
5.1.8-prerelease plugins that call `invokeActions()`.
2015-03-25 22:13:22 +00:00
Jermolene
4eb2e3d3b4
Fix undefined tabindex problem with link widget
...
The tabindex attribute was being set to the string “undefined” if the
attribute was not specified. The fix is to only set the tabindex
attribute if the attribute was specified.
2015-03-25 11:11:07 +00:00
Jermolene
bd6472c1d1
Add style attribute to reveal widget
2015-03-23 15:28:26 +00:00
Jermolene
657c266522
Coding style tweaks
2015-03-10 20:04:34 +00:00
Jermolene
e80a08f43b
Fix problem with custom tag in reveal widget
2015-03-10 16:59:25 +00:00
Jermolene
1808b1597e
Support custom HTML element tags for reveal widget
2015-03-10 12:44:47 +00:00
Jermolene
64e1a76987
Prevent edit-text widget from generating unsafe elements
2015-03-10 12:34:50 +00:00
Jermolene
05c3de3245
Extend list widget to invoke storyview for refreshes
2015-02-23 11:24:03 +01:00
Jermolene
950a86c7b7
Extend link widget with additional attributes
...
Add “tabindex”, “draggable” and “tag” attributes
2015-02-23 11:23:44 +01:00
Jermolene
0da1f3f554
Extend list widget to pass refreshes to the story view
2015-02-23 11:17:00 +01:00
Jermolene
60e6b584bf
Extend link widget with new attributes
...
Add “draggable”, “tag” and “tabindex” attributes to link widget.
2015-02-23 11:16:44 +01:00
James Welford Anderson
ee6b6a0f0c
add macros for custom statically exported paths/links/images
...
tv-get-export-path tells render tiddlers where to export files
tv-get-export-image-link tells images.js where to look for images
tv-get-export-link tells tells link.js where to look for links to other
exported tiddlers
2015-02-21 06:45:40 +09:00
Jermolene
ead6eb00d4
Revert "Merge pull request #1509 from welford/static_export_macro"
...
This reverts commit b2b8006b58
, reversing
changes made to e7e16137b2
.
@welford my apologies it turns out there are a couple of problems, I’ll
comment more on the pull request
2015-02-20 18:39:13 +00:00
Jeremy Ruston
b2b8006b58
Merge pull request #1509 from welford/static_export_macro
...
Static export macro for custom paths
2015-02-20 18:15:43 +00:00
Jermolene
9e9b9a3bf1
Avoid navigating to an empty title
...
Fixes #1515
2015-02-20 16:19:53 +00:00
James W. Anderson
d1809f352c
explicitly pass through source params
...
from the image/link widget to the respective static export macros
2015-02-17 07:11:00 +09:00
Jermolene
68165af081
Revert #1330 ("implements list iterator variables")
...
As discussed on the ticket, there is a problem:
https://github.com/Jermolene/TiddlyWiki5/pull/1330#issuecomment-74339195
2015-02-13 22:42:36 +00:00
Jermolene
c9ab873ba3
Fixes problem with drag and drop in Safari
...
Fixes #1415
The problem was that encodeURI() doesn’t encode slashes, which are not
legal in a data URI, although only Safari was failing. We switch to
encodeURIComponent(), which does encode slashes
2015-02-11 10:07:10 +00:00
Jermolene
1924eda8a9
Improvements for #1483
...
* Rename the global to $tw.dragInProgress for clarity.
* Abort the dragenter so that we don’t get extraneous feedback during
the drag
2015-02-10 23:17:38 +00:00
Jeremy Ruston
1b87d9134b
Merge pull request #1483 from tobibeer/592-no-drag-n-drop-to-same-location
...
prevents drag and drop import in same window
2015-02-10 23:04:45 +00:00
Tobias Beer
dc23963525
using $tw.dragging to prevent dnd in same window
...
Anything missing?
2015-02-10 23:34:37 +01:00
Tobias Beer
30f2c06c9e
Revert "prevents drag and drop import in same window"
...
This reverts commit 09afa8297a
.
2015-02-10 23:33:19 +01:00
Tobias Beer
09afa8297a
prevents drag and drop import in same window
...
fixes #592
Introduces and preserves **_origin** field when using drag-and-drop —
bad idea? discard? different field name?
demo http://592.tiddlyspot.com
2015-02-09 23:49:04 +01:00
Jermolene
8dcd080cdd
Style fix
2015-02-09 21:46:54 +00:00
Jeremy Ruston
9cf1f8f96b
Merge pull request #1476 from tobibeer/fix-tm-delete-tiddler-doesnt-exist
...
Fix issue deleting non-existent tiddler
2015-02-09 21:46:08 +00:00
James Welford Anderson
0b68428bc5
add image export path macro
2015-02-10 05:59:56 +09:00
Tobias Beer
ca6ab6388a
no error when tiddler doesn't exist
...
Currently **tm-delete-tiddler** throws a red error box:
```
<$button>
<$action-sendmessage $message="tm-delete-tiddler" $param="DoesntExist"/>
delete non-existing
</$button>
```
**Uncaught TypeError: Cannot read property 'fields' of undefined**
2015-02-09 12:28:42 +01:00
Roma Hicks
687d6350d4
Added class mechanism to checkbox widget. #1463
2015-02-06 01:02:01 -06:00
James Welford Anderson
4049affb31
initial pass at static export macros
2015-02-03 07:30:24 +09:00
Jeremy Ruston
4cd8466adb
Merge pull request #1396 from ng110/master
...
Allow widget actions to propagate to children
2015-01-28 16:28:11 +00:00
ng110
a7a205a754
Update select.js
2015-01-28 16:00:34 +00:00
ng110
16fe9fd5ce
Update select.js
2015-01-20 13:02:06 +00:00
ng110
f9c4f6898e
Add capability for widgets to trigger all descendant action widgets, rather than just immediate children.
...
Preserves compatibility with existing invokeActions call in button widget by creating a separate 'invokeActionCall' function to carry out the recursion. Triggering all descendants permits use of action widgets inside list widgets or macros. Also makes it possible to add triggering capability to select widget.
2015-01-20 12:34:24 +00:00
Jermolene
0fdfbc482c
Add nwsaveas and param attributes to browse widget
...
These are for TiddlyDesktop, and only work under node-webkit
2015-01-11 14:20:34 +00:00
Jermolene
280909bb68
Fix crash for macros that return undefined
...
Fixes #1348
2015-01-10 13:36:43 +00:00
Jermolene
b68276e219
Fix for serverside rendering
2015-01-06 18:19:55 +00:00
Jeremy Ruston
ea07b558a3
Merge pull request #1327 from aelocson/railroad-links
...
Links and transclusions in railroad diagrams
2015-01-06 13:58:27 +00:00
Jermolene
ec829180f4
Coding style clean up for #1330
2015-01-06 13:49:05 +00:00
Tobias Beer
0dd3ad5e38
updated false states — looks more conclusive
2015-01-06 14:40:48 +01:00
Tobias Beer
a1ca53fa9b
implements list iterator variables, see #1328
...
provides <<iterator>>, <<iterator-even>> and <<iterator-last>>
2015-01-06 14:31:20 +01:00
Astrid Elocson
2f42c9fb8d
Links and transclusions in railroad diagrams
2015-01-06 01:39:24 +00:00
ng110
7d6769f6fd
Update select.js
...
test change
2015-01-04 12:22:00 +00:00
Jermolene
1adfe20508
Fix problem with repeatedly cancelling a draft
...
Fixes #1266
2014-12-22 08:40:11 +00:00
Jermolene
0e62d8f648
Fix problem with tm-add-field for existing fields
...
Fixes #1197
2014-12-05 10:20:25 +00:00
Jermolene
2689e2861b
Revert to using fieldmangler for adding fields
...
In 5.1.5 we switched to using `<$action-setfield>` instead of
`<$fieldmangler>`. The problem was that in the process we lost the
validation of field names, making it possible to create fields with
illegal names
Fixes #1186
2014-12-04 09:39:14 +00:00
Jermolene
5154a25ab9
Add tooltip to browse widget
...
Fixes #1179
2014-12-02 19:16:38 +00:00
Jermolene
56a0809768
Fix problem with edit-bitmap widget static rendering
...
The ‘introduction’ edition contains an edit-bitmap widget that was
failing under Node.js because the fake dom doesn’t support canvas.
2014-11-27 23:03:27 +00:00
Jermolene
962cdf500a
Fix link dragging to text editors
...
We were just adding double square brackets if the title contains
spaces. We should be adding them if the title is not a valid wikilink.
2014-11-26 11:13:05 +00:00
Jermolene
996eecc79a
Coding style cleanup
2014-11-25 13:49:22 +00:00
Jeremy Ruston
6f0d581d72
Merge pull request #1141 from tobibeer/auto-focus-title-on-edit
...
#371 focus title field on edit
2014-11-25 13:43:08 +00:00