Changeset 21382 for extensions/UserCollections/template/edit.tpl
- Timestamp:
- Mar 8, 2013, 7:18:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserCollections/template/edit.tpl
r20090 r21382 1 1 {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"} 4 3 5 4 {combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js'} … … 8 7 {footer_script require='jquery'} 9 8 {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 } 9 ZeroClipboard.setDefaults( {ldelim} moviePath: "{$ROOT_URL}{$USER_COLLEC_PATH}template/resources/ZeroClipboard.swf" } ); 10 var clip = new ZeroClipboard(); 11 clip.glue(jQuery("#publicURL .button").get()); 12 clip.addEventListener('onMouseOver', function() {ldelim} 13 clip.setText(jQuery("#publicURL .url").val()); 14 }); 15 clip.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 }); 25 21 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} 22 jQuery("#publicURL .url").click(function() {ldelim} 23 jQuery(this).select(); 24 }); 25 26 jQuery("input[name='public']").change(function() {ldelim} 27 jQuery("#publicURL").fadeToggle("fast"); 28 }); 35 29 {/if} 36 30 37 31 {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} 40 34 {if isset($uc_mail_errors)}open: true, transition:"none",{/if} 41 35 inline:true 42 36 }); 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(); 45 39 return false; 46 40 }) 47 41 }); 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')); 49 43 {/if} 50 44 {/footer_script} … … 80 74 <label><input type="radio" name="public" value="0" {if not $collection.PUBLIC}checked="checked"{/if}> {'No'|@translate}</label> 81 75 <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}"> </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}"> </span><!-- 78 --><input type="text" class="url" value="{$collection.U_PUBLIC}" size="{$collection.U_PUBLIC|strlen}"><!-- 79 --></span> 83 80 </p> 84 81 {/if}
Note: See TracChangeset
for help on using the changeset viewer.