Page MenuHomePhabricator

LQT add two spinners and makes two requests per click on "Preview" button
Closed, ResolvedPublic

Description

  1. Go to

https://www.mediawiki.org/w/index.php?title=Extension_talk:LiquidThreads&lqt_method=talkpage_new_thread
and type some "text" on edit box.

  1. Click preview. It will show a spinner and once the preview is complete, it will be removed
  2. Click preview again. There will be TWO spinners, and the extension will submit TWO requests, and each spinner will be removed once one of the requests is finished.

There should be only one spinner and only one request each time someone click the preview button.

Google Chrome 17.0.963.83 shows something like this for each request:

XHR finished loading: "https://www.mediawiki.org/w/index.php?title=Extension_talk:LiquidThreads&action=submit".
jQuery.ajaxTransport.sendload.php:121
jQuery.extend.ajaxload.php:115
jQuery.fn.extend.loadload.php:108
window.doLivePreviewpreview.js:31
window.liquidThreads.doLivePreviewload.php:8
jQuery.event.dispatchload.php:48

jQuery.event.add.elemData.handle.eventHandle


Version: unspecified
Severity: normal

Details

Reference
bz35524

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:19 AM
bzimport set Reference to bz35524.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 26290 ***