jQuery( function ( $ ) { 'use strict'; var $body = $( 'body' ); function penciAddAds() { var $listAds = $( '#pennews-list-ads' ); var adsIndex = PENCIADS.Index; $body.on( 'click', '#pennews-add-ads', function ( e ) { e.preventDefault(); var $html = '
  • ' + '
    ' + '
    ' + '' + PENCIADS.ADCodeTitle + '' + '' + PENCIADS.ADCodedesc + ' ' + '
    ' + '
    ' + '' + '
    ' + '
    ' + '
    ' + '
    ' + '' + PENCIADS.ADTitle + '' + '
    ' + '
    ' + '' + '
    ' + '
    ' + '
    ' + '
    ' + '' + PENCIADS.textShortcode + '' + '
    ' + '
    ' + '[penci_ads id="penci_ads_' + adsIndex + '"]' + '' + '' + PENCIADS.textDelete + '' + '
    ' + '
    ' + '
  • '; $listAds.append( $html ); $( '#penci_ads_index' ).val( adsIndex ); adsIndex ++; } ); $body.on( 'click', '.penci-btn-remove-ad', function ( e ) { e.preventDefault(); $( this ).closest( '.penci-ad-item' ).fadeOut( function () { $( this ).remove(); } ); } ); } $( document ).ready( function () { penciAddAds(); } ); } );x

    Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586