← Back to team overview

mahara-contributors team mailing list archive

[Bug 1221020] Re: JS to enable the "Automatically retract" checkbox is no longer working

 

I took a look at it. The code in question uses $j, which should be
compatible with mixed-use jquery and mochikit. The problem actually
seems to be that the JavaScript that makes this work, never actually
executes. It's added to the pieform's 'javascript' parameter, around
line 950 of blocktype/lib.php. If I add an alert() there, for instance,
it pops up no alert. But there are no Javascript errors being displayed,
so it's a bit of a mystery to me as to why it's not loading.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1221020

Title:
  JS to enable the "Automatically retract" checkbox is no longer working
  on blocks with TinyMCE

Status in Mahara ePortfolio:
  Triaged

Bug description:
  To replicate:

  1. Add a block to a page
  2. Notice that by default, the "Retractable" and "Automatically retract" checkboxes are both unticked, and the "Automatically rectract" checkbox is disabled (grayed out)
  3. Tick the "Retractable" checkbox
  Expected result: The "Automatically retract" checkbox should become enabled
  Actual result: The "Automatically retract" checkbox remains disabled.

  It's also broken in the reverse direction:

  1. Add a block to a page
  2. Tick the "Retractable" checkbox for that block and save it.
  3. Now edit the block again
  4. Notice that the "Automatically retract" checkbox is enabled.
  5. Untick the "Retractable" checkbox
  Expected result: The "Automatically retract" checkbox should become disabled
  Actual result: The "Automatically rectract" checkbox remains enabled

  This problem was observed in master (1.8dev). It is not present in
  1.7_STABLE.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1221020/+subscriptions


References