Last modified: 2014-02-14 00:39:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59157, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57157 - Flow: sortable tables don't function post-save (require a page refresh to work)
Flow: sortable tables don't function post-save (require a page refresh to work)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Benjamin Chen
: easy, javascript
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-18 03:25 UTC by MZMcBride
Modified: 2014-02-14 00:39 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2013-11-18 03:25:58 UTC
If I put the following wikicode in a Flow post body:

{| class="wikitable sortable"
! hello
|-
| 1
|-
| 2
|}

Post-save, the table won't be sortable. I have to refresh the page to get the table to be properly sortable.
Comment 1 spage 2013-11-18 08:03:59 UTC
The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/473, but people from the community are welcome to contribute here and in Gerrit.
Comment 2 Bartosz Dziewoński 2013-12-12 19:16:26 UTC
You just need to use a mw.hook to which page content handlers like sortable tables and collapsible divs are hooked.

Basically one line: mw.hook( 'wikipage.content' ).fire( $insertedContent );

(You can grep core for `mw.hook( 'wikipage.content' )` for usage examples.)
Comment 3 Benjamin Chen 2014-02-04 13:03:38 UTC
I am a student participating in Facebook Open Academy that's going to work on Flow. I think I will take this to get myself started and get familiar with tools.
Comment 4 Gerrit Notification Bot 2014-02-07 22:05:04 UTC
Change 112126 had a related patch set uploaded by Legoktm:
fire wikipage.content hook on new posts

https://gerrit.wikimedia.org/r/112126
Comment 5 Gerrit Notification Bot 2014-02-13 21:59:16 UTC
Change 112126 merged by jenkins-bot:
fire wikipage.content hook on new posts

https://gerrit.wikimedia.org/r/112126

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links