← Back to team overview

mahara-contributors team mailing list archive

[Bug 1403703] [NEW] Switchbox pieform element doesn't work in block configs

 

Public bug reported:

I was doing some experimenting with the new switchbox pieform element,
and I found that trying to put it in a block config causes the block
config popup to error out.

The error in the Javascript console is:

"ERROR: sendjsonrequest() callback failed:  TypeError:
jQuery(...).switchButton is not a function [object Object]"

I believe this is because the switchbutton library isn't getting
properly loaded if it's in a block config.

** Affects: mahara
     Importance: Medium
     Assignee: Robert Lyon (robertl-9)
         Status: Confirmed


** Tags: blocks js pagebuilder pieforms switchbox

-- 
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/1403703

Title:
  Switchbox pieform element doesn't work in block configs

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  I was doing some experimenting with the new switchbox pieform element,
  and I found that trying to put it in a block config causes the block
  config popup to error out.

  The error in the Javascript console is:

  "ERROR: sendjsonrequest() callback failed:  TypeError:
  jQuery(...).switchButton is not a function [object Object]"

  I believe this is because the switchbutton library isn't getting
  properly loaded if it's in a block config.

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


Follow ups

References