cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1088
Views
0
Helpful
1
Replies

ISE Sponsor Guest Portal 12-hour clock

matthen
Cisco Employee
Cisco Employee

Is it possible to change the from/to time in the Access Information portion of the Sponsor Guest Portal from a 24-hour formatted clock to a 12-hour formatted clock?

Thanks,

Matt

1 Accepted Solution

Accepted Solutions

Jason Kunst
Cisco Employee
Cisco Employee

Matt goes this working with the following code:

We are working to make this part of the portal permanent from the ISE side. I will post the enhancement when I get it

Paste this under optional content 2, create known accounts section of the sponsor portal for any of the languages you are using:

<script>

(function(){

   $(document).ready(function() {

                jQuery(".ui_approve_accounts_button").hide() ;

                jQuery(".ui_notices_button").hide() ;

                 jQuery(".ui-block-c").hide() ;

   });

})();

</script><script>

(function(){

                function removeMinutes(){

                                if(jQuery(".duration:visible").attr("unit").toUpperCase()==="DAYS"){

                                                jQuery("table.dateTimeGrid td.colRight").hide();

                                                setTimeout(

                                                   function(){

                                                jQuery("[name='from-time']").val("00:00");

                                                jQuery("[name='to-time']").val("23:59");                     

                                                   }

                                                ,50);

                                              

                                }

                }

                jQuery( "body" ).bind( "accesscreated", function() {

                                removeMinutes();

                });

                jQuery( "body" ).bind( "editAccessCreated", function() {

                   removeMinutes();

                });

})();

</script>

View solution in original post

1 Reply 1

Jason Kunst
Cisco Employee
Cisco Employee

Matt goes this working with the following code:

We are working to make this part of the portal permanent from the ISE side. I will post the enhancement when I get it

Paste this under optional content 2, create known accounts section of the sponsor portal for any of the languages you are using:

<script>

(function(){

   $(document).ready(function() {

                jQuery(".ui_approve_accounts_button").hide() ;

                jQuery(".ui_notices_button").hide() ;

                 jQuery(".ui-block-c").hide() ;

   });

})();

</script><script>

(function(){

                function removeMinutes(){

                                if(jQuery(".duration:visible").attr("unit").toUpperCase()==="DAYS"){

                                                jQuery("table.dateTimeGrid td.colRight").hide();

                                                setTimeout(

                                                   function(){

                                                jQuery("[name='from-time']").val("00:00");

                                                jQuery("[name='to-time']").val("23:59");                     

                                                   }

                                                ,50);

                                              

                                }

                }

                jQuery( "body" ).bind( "accesscreated", function() {

                                removeMinutes();

                });

                jQuery( "body" ).bind( "editAccessCreated", function() {

                   removeMinutes();

                });

})();

</script>