Plugin Directory

Changeset 1209969


Ignore:
Timestamp:
07/30/2015 08:19:09 PM (11 years ago)
Author:
peecho
Message:

resolve bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • peecho/trunk/views/jquery-ui-dialog.php

    r1209965 r1209969  
    99                foreach ($snippets as $key => $snippet) {
    1010                    ?>
    11                     <li onclick="getpeechoshortcut('peecho-shortcode-<?php echo $key;
    12                     ?>')" ><input id="peecho-shortcode-<?php echo $key;?>-radio" type="radio"  value="title" name="title" ><a href="#ps-tabs-<?php echo $key;
     11                    <li onclick="jQuery('#peecho-shortcode-<?php echo $key;
     12                    ?>-radio').attr('checked','checked')" ><input id="peecho-shortcode-<?php echo $key;?>-radio" type="radio"  value="title" name="title" onclick="jQuery('#peecho-shortcode-<?php echo $key;
     13                    ?>').trigger('click');"><a href="#ps-tabs-<?php echo $key;
    1314                    ?>"  id="peecho-shortcode-<?php echo $key;
    14                     ?>"><?php echo $snippet['title'];
    15                     ?></a></li>
     15                    ?>" onclick="jQuery('#peecho-shortcode-<?php echo $key;
     16                    ?>-radio').attr('checked','checked')">
     17                    <?php echo ucwords($snippet['title']); ?></a></li>
    1618                <?php
    1719                } ?>
     
    7678    cursor: pointer;
    7779}
     80
     81.peechoselect li a{
     82    text-decoration:none !important;
     83    outline:none !important;
     84}
     85.peechoselect li{
     86    border:none !important;
     87    outline:none !important;
     88}
     89.peechoselect li:focus{outline: 0 !important;}
     90.peechoselect li a:focus{outline: 0 !important;}
     91.peechoselect li{
     92    border:none !important;
     93    outline:none !important;
     94}
     95#peechonav ol li{outline:0 !important;}
     96#peechonav ol:hover{outline:0 !important;}
     97
    7898</style>
    7999<script>
     
    81101var selection = jQuery('.peechoselect');
    82102var select = selection.find('li');
    83 
    84103nav.click(function(event) {
    85104    if (nav.hasClass('active')) {
     
    98117});
    99118function getpeechoshortcut(ID){
    100    jQuery('#'+ID).trigger('click');
    101    jQuery('#'+ID+'-radio').attr('checked','checked');
    102    alert('here');
     119   //jQuery('#'+ID).trigger('click');
     120   //jQuery('#'+ID+'-radio').attr('checked','checked');
     121   //alert('here');
    103122}
     123
    104124</script>
Note: See TracChangeset for help on using the changeset viewer.