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: Scott Koranda <>
  • To: Benn Oshrin <>
  • Cc: comanage-dev <>
  • Subject: Re: [comanage-dev] stop instrusive Javascript for view
  • Date: Tue, 21 Jan 2014 10:53:19 -0600

https://bugs.internet2.edu/jira/browse/CO-776

Thanks,

Scott


On Tue, Jan 21, 2014 at 10:50 AM, Benn Oshrin <> wrote:
Somebody please add this to JIRA with a label "UI2" and a fix version of "COmanage Future" (or sooner if you want).

Thanks,

-Benn-

On 1/19/14 7:05 PM, Scott Koranda wrote:
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 <
<mailto:>> 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 <
    <mailto:>> 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