Changeset 14514


Ignore:
Timestamp:
Apr 29, 2012, 2:36:30 PM (12 years ago)
Author:
plg
Message:

feature 2626: add watermark preview (copied from original configuration screen)

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/configuration.tpl

    r14513 r14514  
    454454jQuery(document).ready(function() {
    455455
     456  function onWatermarkChange() {
     457    var val = jQuery("#wSelect").val();
     458    if (val.length) {
     459      jQuery("#wImg").attr('src', {/literal}'{$ROOT_URL}'{literal}+val).show();
     460    }
     461    else {
     462      jQuery("#wImg").hide();
     463    }
     464  }
     465
     466  onWatermarkChange();
     467
     468  jQuery("#wSelect").bind("change", onWatermarkChange);
     469
    456470  if (jQuery("input[name='w[position]']:checked").val() == 'custom') {
    457471    jQuery("#positionCustomDetails").show();
     
    479493      </select>
    480494      <br>{'... or '|@translate}<a href="#" class="addWatermarkOpen" title="{'add a new watermark'|@translate}">{'add a new watermark'|@translate}</a>
    481     </li>
    482 
    483 {*
    484 <p><img id="wImg"></img></p>
    485 *}
     495      <br><img id="wImg"></img>
     496    </li>
    486497
    487498    <li>
  • trunk/admin/themes/default/theme.css

    r14513 r14514  
    11121112input[type="text"].dError {border-color:#ff7070; background-color:#FFe5e5;}
    11131113.dErrorDesc {background-color:red; color:white; padding:0 5px;border-radius:10px; font-weight:bold;cursor:help;}
     1114
     1115#wImg {max-height:100px;border:2px solid #ccc;}
Note: See TracChangeset for help on using the changeset viewer.