Skip to Content.
Sympa Menu

comanage-dev - Re: [comanage-dev] stop instrusive Javascript for view

Subject: COmanage Developers List

List archive

Re: [comanage-dev] stop instrusive Javascript for view


Chronological Thread 
  • From: Arlen Johnson <>
  • To:
  • Subject: Re: [comanage-dev] stop instrusive Javascript for view
  • Date: Sun, 19 Jan 2014 17:38:16 -0500

Line 162 of app/View/Layouts/default.ctp contains:

      // Make all submit buttons pretty
      $("input:submit").button();

I expect this is too inclusive.  One solution is to use a class on all submit buttons we want to "buttonize" and select against that.  A less invasive solution is to remove just the submit you don't want from the set of returned elements, e.g.

$("input:submit").not("#idpSelectSelectButton").button();

This is a simple solution, but perhaps not as clean as selecting a class explicitly.  Perhaps use the simple solution to get things working, and when we overhaul the views, we can update the submit buttons to have a class.

A

On 1/18/2014 5:35 PM, Scott Koranda wrote:
Hi,

Neither. It is generated by the _javascript_ code that is part of the Shibboleth Embedded Discovery Service. 

I just need the COmanage default layout to not "interfere" with it.

I did try setting

$ = null;
Jquery = null;

and that worked but then other things randomly appeared on the screen as part of the default layout, so disabling Jquery does not appear to be what we want.

Thanks,

Scott



On Sat, Jan 18, 2014 at 4:32 PM, Benn Oshrin <> wrote:
How are you generating the button? Are you writing the input tag yourself, or using Cake's formhelper?

On 1/18/14 12:35 PM, Scott Koranda wrote:
Hi,

I have a simple view that draws a simple form with a simple
button:

<input id="idpSelectSelectButton" type="submit"
value="Continue" disabled="">

The default layout, however, includes somewhere some
_javascript_ that is rewriting that button to be

<input id="idpSelectSelectButton" class="ui-button ui-widget
ui-state-default ui-corner-all ui-button-disabled
ui-state-disabled" type="submit" value="Continue" disabled=""
role="button" aria-disabled="true">

Note the "ui-button-disabled" and "ui-state-disabled" class.

Other than turning off the default layout entirely and
recreating the parts I need/want, how can I stop the rewriting
of this button?

Thanks,

Scott







Archive powered by MHonArc 2.6.16.

Top of Page