comanage-dev - Re: [comanage-dev] stop instrusive Javascript for view
Subject: COmanage Developers List
List archive
- From: Scott Koranda <>
- To: Arlen Johnson <>
- Cc: comanage-dev <>
- Subject: Re: [comanage-dev] stop instrusive Javascript for view
- Date: Sun, 19 Jan 2014 21:05:05 -0600
Thanks.
That's just the hint I needed.
What I did is add this to the end of my view:
<script type="text/_javascript_">
$("#idpSelectSelectButton").removeAttr('disabled').removeClass('ui-state-disabled');
</script>
I do think that adding a class on all submit buttons we want to "buttonize" is a good idea and a nice general way to solve this when we have more time.
Cheers,
Scott
On Sun, Jan 19, 2014 at 4:38 PM, Arlen Johnson <> wrote:
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
- [comanage-dev] stop instrusive Javascript for view, Scott Koranda, 01/18/2014
- Re: [comanage-dev] stop instrusive Javascript for view, Arlen Johnson, 01/18/2014
- Re: [comanage-dev] stop instrusive Javascript for view, Benn Oshrin, 01/18/2014
- Re: [comanage-dev] stop instrusive Javascript for view, Scott Koranda, 01/18/2014
- Re: [comanage-dev] stop instrusive Javascript for view, Arlen Johnson, 01/19/2014
- Re: [comanage-dev] stop instrusive Javascript for view, Scott Koranda, 01/19/2014
- Re: [comanage-dev] stop instrusive Javascript for view, Benn Oshrin, 01/21/2014
- Re: [comanage-dev] stop instrusive Javascript for view, Scott Koranda, 01/21/2014
- Re: [comanage-dev] stop instrusive Javascript for view, Benn Oshrin, 01/21/2014
- Re: [comanage-dev] stop instrusive Javascript for view, Scott Koranda, 01/19/2014
- Re: [comanage-dev] stop instrusive Javascript for view, Arlen Johnson, 01/19/2014
- Re: [comanage-dev] stop instrusive Javascript for view, Scott Koranda, 01/18/2014
Archive powered by MHonArc 2.6.16.