Ignore:
Timestamp:
Mar 8, 2013, 7:18:00 PM (11 years ago)
Author:
mistic100
Message:

fix caddie button,
fix fatal error for Back2Front,
update ZeroClipboard,
fix breadcrumb and body_id,
unactive for mobile themes,
fix display issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/template/edit.tpl

    r20090 r21382  
    11{combine_css path=$USER_COLLEC_PATH|@cat:"template/style.css"}
    2 {combine_script id='jquery.zclip' path=$USER_COLLEC_PATH|@cat:"template/resources/jquery.zclip.min.js"}
    3 {combine_script id='jquery.tipTip' path='themes/default/js/plugins/jquery.tipTip.minified.js'}
     2{combine_script id='ZeroClipboard' path=$USER_COLLEC_PATH|@cat:"template/resources/ZeroClipboard.min.js"}
    43
    54{combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js'}
     
    87{footer_script require='jquery'}
    98{if $user_collections.allow_public}
    10   function bindZclip() {ldelim}
    11     jQuery("#publicURL .button").zclip({ldelim}
    12       path:'{$ROOT_URL}{$USER_COLLEC_PATH}template/resources/ZeroClipboard.swf',
    13       copy:$("#publicURL .url").html(),
    14       afterCopy: function() {ldelim}
    15         $('.confirm').remove();
    16         $("#publicURL .url").select();
    17         $('<span class="confirm" style="display:none;">{'Copied'|@translate}</span>').appendTo("#publicURL")
    18           .fadeIn(400).delay(1000).fadeOut(400, function(){ldelim} $(this).remove(); });
    19       }
    20     });
    21     $("#publicURL .url").click(function() {ldelim}
    22       $(this).select();
    23     });
    24   }
     9ZeroClipboard.setDefaults( {ldelim} moviePath: "{$ROOT_URL}{$USER_COLLEC_PATH}template/resources/ZeroClipboard.swf" } );
     10var clip = new ZeroClipboard();
     11clip.glue(jQuery("#publicURL .button").get());
     12clip.addEventListener('onMouseOver', function() {ldelim}
     13  clip.setText(jQuery("#publicURL .url").val());
     14});
     15clip.addEventListener('complete', function() {ldelim}
     16  jQuery('.confirm').remove();
     17  jQuery("#publicURL .url").select();
     18  jQuery('<span class="confirm" style="display:none;">{'Copied'|@translate}</span>').appendTo("#publicURL")
     19    .fadeIn(400).delay(1000).fadeOut(400, function(){ldelim} jQuery(this).remove(); });
     20});
    2521
    26   jQuery("input[name='public']").change(function() {ldelim}
    27     jQuery("#publicURL").fadeToggle("fast");
    28     bindZclip();
    29   });
    30   jQuery("#publicURL .button").tipTip({ldelim}
    31     delay: 0,
    32     defaultPosition: 'right'
    33   });
    34   {if $collection.PUBLIC}bindZclip();{/if}
     22jQuery("#publicURL .url").click(function() {ldelim}
     23  jQuery(this).select();
     24});
     25
     26jQuery("input[name='public']").change(function() {ldelim}
     27  jQuery("#publicURL").fadeToggle("fast");
     28});
    3529{/if}
    3630
    3731{if $collection.PUBLIC && $user_collections.allow_mails}
    38   $(window).load(function(){ldelim}
    39     $(".mail_colorbox_open").colorbox({ldelim}
     32  jQuery(window).load(function(){ldelim}
     33    jQuery(".mail_colorbox_open").colorbox({ldelim}
    4034      {if isset($uc_mail_errors)}open: true, transition:"none",{/if}
    4135      inline:true
    4236    });
    43     $(".mail_colorbox_close").click(function() {ldelim}
    44       $(".mail_colorbox_open").colorbox.close();
     37    jQuery(".mail_colorbox_close").click(function() {ldelim}
     38      jQuery(".mail_colorbox_open").colorbox.close();
    4539      return false;
    4640    })
    4741  });
    48   $("#mail_form").css('background-color', $("#the_page #content").css('background-color'));
     42  jQuery("#mail_form").css('background-color', jQuery("#the_page #content").css('background-color'));
    4943{/if}
    5044{/footer_script}
     
    8074    <label><input type="radio" name="public" value="0" {if not $collection.PUBLIC}checked="checked"{/if}> {'No'|@translate}</label>
    8175    <label><input type="radio" name="public" value="1" {if $collection.PUBLIC}checked="checked"{/if}> {'Yes'|@translate}</label>
    82     <span id="publicURL" {if not $collection.PUBLIC}style="display:none;"{/if}><span class="button" title="{'Copy to clipboard'|@translate}">&nbsp;</span><input type="text" class="url" value="{$collection.U_PUBLIC}" size="{$collection.U_PUBLIC|strlen}"></span>
     76    <span id="publicURL" {if not $collection.PUBLIC}style="display:none;"{/if}><!--
     77    --><span class="button" title="{'Copy to clipboard'|@translate}">&nbsp;</span><!--
     78    --><input type="text" class="url" value="{$collection.U_PUBLIC}" size="{$collection.U_PUBLIC|strlen}"><!--
     79  --></span>
    8380  </p>
    8481{/if}
Note: See TracChangeset for help on using the changeset viewer.