{"version":3,"sources":["admin.js"],"names":["pprf_resizeIframe_fn","obj","style","height","contentWindow","document","body","scrollHeight","pprf_updateIframeSize_fn","x","y","jQuery","animate","pprf_updateSize_fn","xpprf_orgHei_int","pprf_orgHei_int","pprf_updateParentIframe_fn","pprfParentHei_int","podid","cpodid","authorid","iframeid","poditemid","parentName","data_obj","isNumeric","postid","action","security","ajax_script","nonce","para_obj","removeClass","post","ajaxurl","re_arr","addClass","return_arr","item_html_fn","append","iframe_str","itemsLeft_int","length","parseInt","val","limit_int","click","pprf_odd_even_color_fn","$item_arr","repeated_bln","trashed_str","btnTrashed_str","display_str","editIcon_str","data","hasClass","repeated_str","ids_str","response_str","label_str","title_str","delAct_str","nextBg_str","fullUrl_str","html_str","PANDA_PODS_REPEATER_URL","trashed","info_str","can_recover","itemid","strs_obj","be_deleted","trash","be_restored","response_arr","confirm","you_sure","css","hide","exp_str","contents","find","html","attr","remove","call_simpods_fn","parent","isFunction","target_str","ele_obj","cp_title","trashable","each","idx_int","order","this","start","loaded_arr","pod_id","post_id","saved_tb","response_obj","success","iframe_id","trashed_int","pod_item_id","$notTrash_int","i","order_by","amount","j","text","children","pprf_reassign_fn","$originals","$helper","index","evt","id","on","preventDefault","pprf_load_more_fn","loaded","ready","$","helper","e","tr","clone","theOrder_arr","cursor","opacity","pprf_delete_item_fn","update","sortable","cancel","handle","resp_arr","pprf_id","addEdit_str","stopPropagation","url_str","trash_ele","show","iframe","ids","trash_int","getElementById","pprf_resize_fn","trigger","pprfChanged_bln","Ignore_changes","leave_bln"],"mappings":"aAAA,SAASA,qBAAqBC,GAC7BA,EAAIC,MAAMC,OAASF,EAAIG,cAAcC,SAASC,KAAKC,aAAe,KAInE,SAASC,yBAA0BC,EAAGC,GAE3B,IAALD,GACJE,OAAAA,IAAOF,GAADN,OAANQ,OAA8B,IAACF,GAAPN,UAA2BS,QAAQ,CAAAT,OAAAO,GAAA,KAC3D,SAAAG,mBAAAJ,GAIS,IAALA,IAFGI,OAAuBJ,E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H,GAAA,QAAA,mDAAA,WACC,GAAA+B,gBAAA,CAfEjC,IAAIG,iBAgBL,IAACnH,EAAekH,QAAGjD,SAASiF,gBAM3BxG,GAJG,GAAAyG,IACH5B,iBAAG,EACHA,EAAG7B,MAAOT,SAEVvC,GAAAA,EANF,OASA,KASC6E,EAAAvH,SAAAC,MAAAiH,GAAA,QAAA,6BAAA,WAEFK,EAAA,0BAAAA,EAAA7B,MAAAT,SAAAhC,KAAA,UAAA,kBAAAuB,IAAA,UAAA,SACE+C,EAAA,0BAAAA,EAAA7B,MAAAT,SAAAhC,KAAA,UAAA,sBAAAuB,IAAA,UAAA,QAjBC+C,EAAG7B,MAAOT,SAASA,SAAS0B,SAAS,WAAWhF,YAAY,UAkB5D4F,EAACvH,MAASC,SAAS8B,SAAS,UAC5BwF,uBAAWA,EAAe7B,MAAfT,SAA2BhC,KAAA,aAbxCsE,EAAEvH,SAASC,MAAMiH,GAAG,QAAS,iCAAkC,WAC7DK,EAAG,0BAA4BA,EAAG7B,MAAMT,SAAShC,KAAK,UAAY,kBAAkBuB,IAAI,UAAW,QACnG+C,EAAG,0BAA4BA,EAAG7B,MAAMT,SAAShC,KAAK,UAAY,sBAAsBuB,IAAI,UAAW,SACvG+C,EAAG7B,MAAOT,SAASA,SAAS0B,SAAS,WAAWhF,YAAY,UAC5D4F,EAAG7B,MAAOT,SAASlD,SAAS,UAC5BW,uBAAwB6E,EAAG7B,MAAMT,SAAShC,KAAK,aAOhDsE,EAAEvH,SAASC,MAAMiH,GAAG,QAAS,oBAAqB,WACjDK,EAAE,OAASA,EAAG7B,MAAOzC,KAAK,UAAY,aAAc8B,aAIvD,IAAIkE,iBAAkB","file":"admin.min.js","sourcesContent":["function pprf_resizeIframe_fn(obj) {\r\n\tobj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';\r\n\r\n}\r\n\r\nfunction pprf_updateIframeSize_fn( x, y ){\r\n\t\r\n\tif ( x != '' ) {\r\n\t\tjQuery('#' + x).height( jQuery('#' + x).height() ).animate({height: y}, 500);\r\n\t}\r\n}\r\nfunction pprf_updateSize_fn( x ){\r\n\t\r\n\tif ( x != '' ) {\r\n\t\tvar xpprf_orgHei_int = jQuery( x + ' html #wpbody-content').height() + 60;\r\n\t\r\n\t\tjQuery('#' + x).height( jQuery('#' + x).height() ).animate({height: pprf_orgHei_int }, 500);;\r\n\r\n\t}\r\n}\r\nfunction pprf_updateParentIframe_fn( x ){\r\n\t\r\n\tif ( x != '') {\r\n\t\t\r\n\t\tvar y = jQuery('#' + x + ' html #wpbody-content').height();\r\n\t\t// 4px is the small gap at the bottom\r\n\t\tjQuery('#' + x).height( jQuery('#' + x).height() ).animate({height: y }, 500);\r\n\r\n\t}\r\n}\r\nvar pprfParentHei_int = jQuery('html').height();\r\n/**\r\n * insert a new row to the page after adding a new item\r\n */\r\nfunction pprf_new_fn( podid, postid, cpodid, authorid , iframeid, poditemid, parentName ){ \r\n\tif( jQuery.isNumeric( podid ) && jQuery.isNumeric( cpodid ) && jQuery.isNumeric( authorid ) && jQuery.isNumeric( poditemid ) ) {\r\n\t\t\r\n\t\tvar para_obj = { 'podid': podid, 'postid': postid, 'cpodid': cpodid, 'authorid': authorid, 'poditemid' : poditemid, 'action' : 'admin_pprf_load_newly_added_fn', 'security' : ajax_script.nonce };\r\n\t\r\n\t\tvar data_obj = para_obj;\r\n\t\t\r\n\t\tjQuery('#panda-repeater-fields-' + cpodid + '-' + poditemid + '-' + 'loader' ).removeClass('hidden');\t\t\t\r\n\t\tjQuery.post(\r\n\t\t\tajax_script.ajaxurl, \r\n\t\t\tdata_obj, \r\n\t\t\tfunction( re_arr ){\t\r\n\t\t\t\tjQuery('#panda-repeater-fields-' + cpodid + '-' + poditemid + '-' + 'loader' ).addClass('hidden');\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tvar return_arr = re_arr['data'];\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t//console.log( return_arr );\r\n\t\t\t\tif( re_arr['success'] === true && typeof return_arr['id'] !== 'undefined' && jQuery.isNumeric( return_arr['id'] ) ){\r\n\r\n\t\t\t\t\tvar\tiframe_str\t\t= item_html_fn( return_arr, podid, postid, cpodid, authorid , iframeid, poditemid, parentName, false );\r\n\t\t\t\t\t\r\n\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list' ).append( iframe_str ); \r\n\t\t\t\t\t// if entries limit, toggle the add new \r\n\t\t\t\t\tvar itemsLeft_int\t= jQuery('#panda-repeater-fields-' + cpodid + '-' + poditemid + ' > .pprf-redorder-list > li').length;\r\n\t\t\t\t\tvar limit_int\t=\tparseInt( jQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + '-entry-limit' ).val() );\r\n\t\t\t\t\tif( limit_int != 0 && itemsLeft_int >= limit_int ){\r\n\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + '-add-new' ).addClass('hidden');\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t\t// if add a new one, activeate the live items tab\r\n\t\t\t\tjQuery( '#panda-repeater-fields-tabs-' + cpodid + '-' + poditemid + ' .pprf-tab .dashicons-portfolio').click();\t\r\n\t\t\t\t//jQuery( document ).on('click', '#panda-repeater-fields-tabs-' + cpodid + '-' + poditemid + ' .pprf-tab .dashicons-portfolio' );\r\n\t\t\t\t\r\n\t\t\t\tpprf_odd_even_color_fn( cpodid + '-' + poditemid );\r\n\t\t\t}\r\n\t\t);\t\r\n\t}\r\n}\r\n\r\nfunction item_html_fn( $item_arr, podid, postid, cpodid, authorid , iframeid, poditemid, parentName, repeated_bln ){\r\n\tif( typeof $item_arr['id'] == 'undefined' || !jQuery.isNumeric( $item_arr['id'] ) ){\r\n\t\treturn '';\r\n\t}\r\n//console.log($item_arr);\r\n\tvar trashed_str\t\t= '';\r\n\tvar btnTrashed_str\t= 'pprf-btn-delete';\r\n\tvar display_str\t\t= '';\r\n\tvar editIcon_str\t= 'dashicons-edit';\r\n\r\n\tif( jQuery('#panda-repeater-trash-info-' + cpodid + '-' + poditemid ).data('enable-trash') == 1 ){\t\t\r\n\t\tif( typeof $item_arr['trashed'] != 'undefined' && $item_arr['trashed'] == 1 ){\r\n\t\t\t\r\n\t\t\ttrashed_str \t= 'pprf-trashed';\r\n\t\t\tbtnTrashed_str\t= 'pprf-btn-trashed';\r\n\t\t\t// if the portfolio foder is open, hide the trash one\r\n\t\t\teditIcon_str\t= 'dashicons-update ';\t\r\n\t\t\tif( jQuery('#panda-repeater-fields-tabs-' + cpodid + '-' + poditemid + ' .pprf-tab.active .dashicons').hasClass('dashicons-portfolio') ) {\r\n\t\t\t\tdisplay_str\t\t= 'display:none;';\r\n\t\t\t}\t\t\r\n\t\t\t\t\r\n\t\t} else {\r\n\t\t\ttrashed_str\t\t= 'pprf-not-trashed';\r\n\t\t\tbtnTrashed_str\t= 'pprf-btn-not-trashed';\r\n\t\t\tif( jQuery('#panda-repeater-fields-tabs-' + cpodid + '-' + poditemid + ' .pprf-tab.active .dashicons').hasClass('dashicons-trash') ) {\r\n\t\t\t\tdisplay_str\t\t= 'display:none;';\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t}\t\r\n\tvar repeated_str\t=\t'';\r\n\tif( repeated_bln == true ){\r\n\t\trepeated_str\t=\t'-repeated';\r\n\t}\r\n\tvar delAct_str \t\t= '';//jQuery('#panda-repeater-fields-' + cpodid + '-' + poditemid + '-' + 'add-new .pprf-trash-btn' ).data('target');\r\n\tvar ids_str\t \t\t= cpodid + '-' + $item_arr['id'] + '-' + poditemid;\r\n\tvar response_str \t= $item_arr['id'];\r\n\tvar title_str\t \t= $item_arr['title'];\r\n\tvar label_str\t\t= 'ID: ' + response_str + ' ' + $item_arr['pprf_name_label'] + ': ' + title_str;\r\n\tif( typeof $item_arr['label'] != 'undefined' && $item_arr['label'] != '' ){\r\n\t\tlabel_str\t=\t$item_arr['label'];\r\n\t}\r\n\tvar nextBg_str\t \t= jQuery('#next-bg').data('bg');\r\n\tvar fullUrl_str\t \t= PANDA_PODS_REPEATER_PAGE_URL + 'iframe_id=panda-repeater-edit-' + ids_str + '&podid=' + podid + '&tb=' + cpodid + '&postid=' + postid + '&itemid=' + response_str + '&poditemid=' + poditemid;\t\r\n\tvar html_str =\t\r\n\t '
  • ' +\r\n\t\t'
    ' + \r\n\t\t\t'
    ' +\r\n\t\t\t\t'
    ' + label_str + '
    ';\r\n\r\n\tif( repeated_bln == true ){\r\n\t\t\thtml_str +=\t\r\n\t\t\t\t\t\t'
    ' + \r\n\t\t\t\t\t\t\t'' +\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t'
    ' +\t\r\n\t\t\t\t\t\t'
    Repeated
    ';\t\t\t\r\n\t} else {\r\n\t\thtml_str +=\t\t\t\t\r\n\t\t\t\t'
    ' + \r\n\t\t\t\t\t'' +\r\n\t\t\t\t\t'' +\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t'
    ' +\t\r\n\t\t\t\t'
    ' +\r\n\t\t\t\t\t'' + \t\r\n\t\t\t\t\t'' +\r\n\t\t\t\t'
    ' +\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t'
    ' +\r\n\t\t\t\t\t'' +\r\n\t\t\t\t\t'\t' +\r\n\t\t\t\t'
    ';\r\n\t}\r\n\thtml_str +=\t\t\t\t\t\t\t\t\r\n\t\t\t'
    ' +\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t'
    ' + \r\n\t\t\t\t'' + \r\n\t\t\t\t'
    Content missing? Click here to expand
    ' + \r\n\t\t\t'
    ' +\r\n\t \t '
    ' +\r\n\t\t'
  • '\r\n\t ;\r\n\tif( nextBg_str == 'pprf-purple-bg' ){\r\n\t\tjQuery('#next-bg').data('bg', 'pprf-white-bg');\r\n\t} else {\r\n\t\tjQuery('#next-bg').data('bg', 'pprf-purple-bg');\t\t\t\t\t\t\r\n\t}\t \r\n\treturn html_str; \r\n}\r\n/**\r\n * delete an item\r\n */\r\nfunction pprf_delete_item_fn( podid, postid, cpodid, itemid, authorid , iframeid, poditemid, trashed ){\r\n\t\r\n\tif( jQuery.isNumeric( podid ) && jQuery.isNumeric( cpodid ) && jQuery.isNumeric( authorid ) && jQuery.isNumeric( itemid ) && jQuery.isNumeric( poditemid ) ) {\r\n\t\t\r\n\t\tvar para_obj \t= { 'podid': podid, 'postid': postid, 'cpodid': cpodid, 'itemid' : itemid, 'authorid': authorid, 'poditemid' : poditemid, 'action' : 'admin_pprf_delete_item_fn', 'trash' : trashed, 'security' : ajax_script.nonce };\r\n\t\tvar info_str\t=\t'';\r\n\t\tif( trashed == 0 ){\r\n\t\t\tinfo_str\t=\tstrs_obj.be_restored;\r\n\t\t}\t\t\r\n\t\tif( trashed == 1 ){\r\n\t\t\tinfo_str\t=\tstrs_obj.can_recover;\r\n\t\t}\r\n\t\tif( trashed == 2 ){\r\n\t\t\tinfo_str\t=\tstrs_obj.be_deleted;\r\n\t\t}\r\n\t\t//panda-repeater-edit-13-506 236\r\n\t\tvar data_obj = para_obj;\r\n\t\tvar passt_bln = confirm( strs_obj.you_sure + ' ' + info_str );\r\n\t\t//$('#overlord').removeClass('hidden');\t\t\r\n\t\t\r\n\t\tif( passt_bln == true ){\r\n\r\n\t\t\tif( trashed == 0 ){\r\n\t\t\t\tjQuery( '#panda-repeater-edit-' + cpodid + '-' + itemid + '-' + poditemid + '-loader' ).removeClass('hidden');\r\n\t\t\t} else {\t\t\t\t \r\n\t\t\t\tjQuery( '#panda-repeater-trash-' + cpodid + '-' + itemid + '-' + poditemid + '-loader' ).removeClass('hidden');\r\n\t\t\t}\r\n\t\t\t//jQuery( '#pprf-row-brief-' + cpodid + '-' + itemid + '-' + poditemid + ' .pprf-trash-btn .dashicons-trash' ).remove( );\r\n\t\t\tjQuery.post(\r\n\t\t\t\tajax_script.ajaxurl, \r\n\t\t\t\tdata_obj, \r\n\t\t\t\tfunction( response_arr ){\t\r\n\t\t\t\t\tif( response_arr['success'] === true ){\r\n\t\t\t\t\t\tvar rsp_arr = response_arr['data'];\r\n\t\t\t\t\t\tif( rsp_arr.length != 0 ){\r\n\t\t\t\t\t\t\tvar ids_str\t=\tcpodid + '-' + itemid + '-' + poditemid;\r\n\t\t\t\t\t\t\tvar exp_str\t\t= 'panda-repeater-edit-expand-' + ids_str;\r\n\t\t\t\t\t\t\tvar iframe_str \t= 'panda-repeater-edit-' + ids_str;\t\t\r\n\r\n\t\t\t\t\t\t\tif( trashed == 0 ){\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-edit-' + cpodid + '-' + itemid + '-' + poditemid + '-loader' ).addClass('hidden');\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-trash-' + cpodid + '-' + itemid + '-' + poditemid + '-loader' ).addClass('hidden');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//jQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' #' + iframeid ).remove( );\r\n\t\t\t\t\t\t\tif( trashed == 0 ){\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"] .pprf-row-load-iframe .pprf-edit-span').removeClass('dashicons-update');\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"] .pprf-row-load-iframe .pprf-edit-span').addClass('dashicons-edit')\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"]' ).removeClass('pprf-trashed');\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"]' ).addClass('pprf-not-trashed');\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"]' ).css('display', 'none');\t\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"] .pprf-trash-btn').addClass('pprf-btn-not-trashed');\t\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"] .pprf-trash-btn').removeClass('pprf-btn-trashed');\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif( jQuery.trim( jQuery('#' + iframe_str ).contents().find(\"body\").html() ) != '' ) {\r\n\t\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"] .pprf-save-btn .pprf-save-icon').attr('src', PANDA_PODS_REPEATER_URL + 'images/save-icon.png');\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif( trashed == 1 ){\r\n\r\n\r\n\t\t\t\t\t\t\t\tif( jQuery('#' + iframe_str ) != 'undefined' ){\r\n\t\t\t\t\t\t\t\t\tjQuery('#' + iframe_str ).hide();\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif( jQuery('#' + exp_str ) != 'undefined' ){\r\n\t\t\t\t\t\t\t\t\tjQuery('#' + exp_str ).hide();\t\r\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tjQuery('#pprf-row-brief-' + ids_str + ' .dashicons' ).removeClass('dashicons-arrow-up');\r\n\t\t\t\t\t\t\t\tjQuery('#pprf-row-brief-' + ids_str + ' .dashicons' ).addClass('dashicons-edit');\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"]' ).removeClass('pprf-not-trashed');\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"]' ).addClass('pprf-trashed');\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"]' ).css('display', 'none');\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"] .pprf-row-load-iframe .pprf-edit-span' ).addClass('dashicons-update');\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"] .pprf-row-load-iframe .pprf-edit-span' ).removeClass('dashicons-edit');\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"] .pprf-trash-btn').addClass('pprf-btn-trashed');\t\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"] .pprf-trash-btn').removeClass('pprf-btn-not-trashed');\t\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"] .pprf-save-btn .pprf-save-icon').attr('src', PANDA_PODS_REPEATER_URL + 'images/save-icon-tran.png');\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif( trashed == 2 ){\t\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' #' + iframeid ).parent().parent().remove( );\r\n\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"]' ).remove( );\r\n\t\t\t\t\t\t\t\t// if entries limit, toggle the add new \r\n\t\t\t\t\t\t\t\tvar itemsLeft_int\t= jQuery('#panda-repeater-fields-' + cpodid + '-' + poditemid + ' > .pprf-redorder-list > li').length;\r\n\t\t\t\t\t\t\t\tvar limit_int\t=\tparseInt( jQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + '-entry-limit' ).val() );\r\n\t\t\t\t\t\t\t\tif( limit_int != 0 && itemsLeft_int < limit_int ){\r\n\t\t\t\t\t\t\t\t\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + '-add-new' ).removeClass('hidden');\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// integrate with simpods js\r\n\t\t\t\t\t\t\t\tif( typeof call_simpods_fn !== 'undefined' && jQuery.isFunction( call_simpods_fn ) ) {\r\n\t\t\t\t\t\t\t\t\tcall_simpods_fn( response_arr );\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//document.getElementById( iframeid ).contentWindow.pprf_resize_fn() ;\r\n\t\t\t\t\t\t\t pprf_odd_even_color_fn( cpodid + '-' + poditemid );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t);\t\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n}\r\n//jQuery('.pprf-redorder-btn').click( function(){\r\njQuery( document ).on('click', '.pprf-redorder-btn',\tfunction( evt ){\t\t\r\n\tvar id = jQuery( this ).data('id');\r\n\tjQuery( this ).addClass('hidden');\t\r\n\tjQuery( this ).parent().children('.pprf-save-redorder-btn').removeClass('hidden');\t\r\n\tjQuery( this ).parent().children('.pprf-redorder-list-wrap').removeClass('hidden');\r\n\tjQuery( this ).parent().children('.pprf-row').addClass('hidden');\t\r\n\tjQuery( '#' + id + '-add-new' ).addClass('hidden');\t\r\n});\r\n\r\n//jQuery('.pprf-save-redorder-btn').click( function(){\r\njQuery( document ).on('click', '.pprf-save-redorder-btn',\tfunction( evt ){\t\r\n\tvar id = jQuery( this ).data('id');\r\n\tjQuery( this ).addClass('hidden');\t\r\n\tjQuery( this ).parent().children('.pprf-redorder-list-wrap').addClass('hidden');\t\r\n\tjQuery( this ).parent().children('.pprf-save-redorder-btn').addClass('hidden');\r\n\tjQuery( this ).parent().children('.pprf-redorder-btn').removeClass('hidden');\r\n\tjQuery( this ).parent().children('.pprf-row').removeClass('hidden');\t\r\n\tjQuery( '#' + id + '-add-new' ).removeClass('hidden');\t\r\n});\r\n /**\r\n * load more\r\n */\r\n//jQuery('.pprf-load-more-btn').click( function( evt ){\r\njQuery( document ).on('click', '.pprf-load-more-btn',\tfunction( evt ){\r\n\tevt.preventDefault();\r\n\tjQuery( '#pprf-load-more-wrap-' + jQuery( this ).data('target') + ' .pprf-ajax-img').css('display', 'block');\r\n\t\r\n\r\n\tpprf_load_more_fn( jQuery( this).data('target'), jQuery( this ) );\r\n\r\n})\t \r\n\r\nfunction pprf_load_more_fn( target_str, ele_obj ){\r\n\tvar loaded_arr\t=\tnew Array();\r\n\tjQuery( '#panda-repeater-fields-' + target_str + ' .pprf-redorder-list li' ).each( function( idx_int ) {\r\n\t\tloaded_arr[ idx_int ] = parseInt( jQuery( this ).data('id') );\r\n\t});\r\n\t\r\n\tvar data_obj = {\r\n\t\taction \t\t: \t'admin_pprf_load_more_fn',\r\n\t\tloaded \t\t:\tloaded_arr, \r\n\t\tsecurity \t: \tajax_script.nonce,\r\n\t\tpod_id\t\t: \tele_obj.data('podid'),\r\n\t\tpost_id\t\t: \tele_obj.data('postid'),\r\n\t\tsaved_tb\t: \tele_obj.data('tb'),\r\n\t\tiframe_id \t: \tele_obj.data('iframe_id'),\r\n\t\tpod_item_id\t: \tele_obj.data('poditemid'),\r\n\t\tauthorid\t: \tele_obj.data('userid'),\r\n\t\tcp_title\t: \tele_obj.data('cptitle'),\r\n\t\ttrashable\t: \tele_obj.data('enable-trash'),\r\n\t\torder\t\t: \tele_obj.data('order'),\r\n\t\torder_by\t: \tele_obj.data('order-by'),\r\n\t\tamount\t\t: \tjQuery('#panda-repeater-amount-' + target_str ).val(),\r\n\t\tstart\t\t: \tjQuery('#panda-repeater-start-from-' + target_str ).val()\r\n\t};\r\n\tjQuery( '#pprf-load-more-wrap-' + target_str + ' .pprf-load-more-report' ).text( '' );\r\n\tjQuery.post(\r\n\t\tajax_script.ajaxurl, \r\n\t\tdata_obj, \r\n\t\tfunction( response_obj ){\r\n\t\t\tvar html_str\t=\t'';\r\n\t\t\tif( response_obj.success == true ){\r\n\t\t\t\tvar trashed_int\t\t=\t0;\r\n\t\t\t\tvar $notTrash_int\t=\t0;\r\n\t\t\t\tfor( var i = 0; i < response_obj.data.length; i ++ ){\t\r\n\t\t\t\t\tvar repeated_bln\t=\tfalse;\r\n\r\n\t\t\t\t\tif( jQuery( '#pprf-load-more-wrap-' + target_str + ' .panda-repeater-to-load' ).val() == 'append_to' ){ // only need to check repeatition if it is on Append To.\r\n\t\t\t\t\t\tfor( var j = 0; j < loaded_arr.length; j ++ ){\t//inArry doesn't work\r\n\t\t\t\t\t\t\tif( parseInt( response_obj.data[ i ]['id'] ) == loaded_arr[ j ] ){\r\n\t\t\t\t\t\t\t\trepeated_bln\t=\ttrue;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\thtml_str += item_html_fn( response_obj.data[ i ], data_obj.pod_id, data_obj.post_id, data_obj.saved_tb, data_obj.authorid , data_obj.iframe_id, data_obj.pod_item_id, data_obj.cp_title, repeated_bln )\r\n\t\t\t\t\tif( response_obj.data[ i ]['trashed'] == 1 ){\r\n\t\t\t\t\t\ttrashed_int ++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tvar info_str\t=\tresponse_obj.data.length;\r\n\t\t\t\tif( data_obj.trashable == 1 ){\r\n\t\t\t\t\tinfo_str\t=\t( parseInt( response_obj.data.length ) - trashed_int ) + ' published, ' + trashed_int + ' trashed.';\r\n\t\t\t\t}\r\n\t\t\t\tif( jQuery( '#pprf-load-more-wrap-' + target_str + ' .panda-repeater-to-load' ).val() == 'append_to' ){\r\n\t\t\t\t\tjQuery( '#panda-repeater-fields-' + data_obj.saved_tb + '-' + data_obj.pod_item_id + ' .pprf-redorder-list' ).append( html_str ); \r\n\t\t\t\t} else {\r\n\t\t\t\t\tjQuery( '#panda-repeater-fields-' + data_obj.saved_tb + '-' + data_obj.pod_item_id + ' .pprf-redorder-list' ).html( html_str ); \r\n\t\t\t\t}\r\n\t\t\t\tpprf_odd_even_color_fn( data_obj.saved_tb + '-' + data_obj.pod_item_id );\r\n\t\t\t\tjQuery( '#pprf-load-more-wrap-' + target_str + ' .pprf-ajax-img').css('display', 'none');\r\n\r\n\t\t\t\tif( response_obj.data.length != 0 ){\r\n\t\t\t\t\tjQuery('#panda-repeater-start-from-' + target_str ).val( parseInt( data_obj.start ) + parseInt( response_obj.data.length ) );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tjQuery( '#pprf-load-more-wrap-' + target_str + ' .pprf-load-more-report' ).text( ' | Loaded ' + info_str );\r\n\t\t\t}\r\n\r\n\t\t\t//item_html_fn( $item_arr, podid, postid, cpodid, authorid , iframeid, poditemid, parentName )\r\n\t\t\t//pprf_new_fn( ele_obj.data('podid'), ele_obj.data('postid'), ele_obj.data('tb'), ele_obj.data('userid'), ele_obj.data('iframe_id'), ele_obj.data('pod_item_id'), ele_obj.data('cptitle') );\r\n\r\n\t\t}\r\n\t);\r\n}\t\r\n/**\r\n * reset colours for each row\r\n */\r\n\r\nfunction pprf_odd_even_color_fn( ids_str ){\r\n\r\n\tjQuery( '#panda-repeater-fields-' + ids_str + ' .pprf-left-col').removeClass('pprf-purple-bg');\r\n\tjQuery( '#panda-repeater-fields-' + ids_str + ' .pprf-left-col').removeClass('pprf-white-bg');\r\n\t\r\n\tif( jQuery( '#panda-repeater-fields-tabs-' + ids_str ).length == 0 ){\r\n\t\t\r\n\t\tjQuery( '#panda-repeater-fields-' + ids_str + ' .pprf-left-col').each( function( idx_int ) {\r\n\t\t\tif( idx_int % 2 == 0 ){\r\n\t\t\t\tjQuery( this ).addClass('pprf-white-bg');\r\n\t\t\t} else {\r\n\t\t\t\tjQuery( this ).addClass('pprf-purple-bg');\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\tjQuery( '#panda-repeater-fields-' + ids_str + ' .pprf-not-trashed').each( function( idx_int ) {\r\n\t\tif( idx_int % 2 == 0 ){\r\n\t\t\tjQuery( this ).children('.pprf-row').children().children('.pprf-left-col').addClass('pprf-white-bg');\r\n\t\t} else {\r\n\t\t\tjQuery( this ).children('.pprf-row').children().children('.pprf-left-col').addClass('pprf-purple-bg');\r\n\t\t}\r\n\t});\r\n\tjQuery( '#panda-repeater-fields-' + ids_str + ' .pprf-trashed').each( function( idx_int ) {\r\n\t\tif( idx_int % 2 == 0 ){\r\n\t\t\tjQuery( this ).children('.pprf-row').children().children('.pprf-left-col').addClass('pprf-white-bg');\r\n\t\t} else {\r\n\t\t\tjQuery( this ).children('.pprf-row').children().children('.pprf-left-col').addClass('pprf-purple-bg');\r\n\t\t}\r\n\t});\t\r\n}\r\n/**\r\n * if reassigned successfully, remove the item and reset colours\r\n */\r\nfunction pprf_reassign_fn( cpodid, poditemid, itemid ){\r\n\t//console.log( cpodid, poditemid, itemid );\r\n\tjQuery( '#panda-repeater-fields-' + cpodid + '-' + poditemid + ' .pprf-redorder-list li[data-id=\"' + itemid + '\"]' ).remove( );\r\n\t//document.getElementById( iframeid ).contentWindow.pprf_resize_fn() ;\r\n\tpprf_odd_even_color_fn( cpodid + '-' + poditemid );\r\n}\r\njQuery(document).ready( function($) {\r\n\t\t\r\n\t/**\r\n\t * fixHelperModified_fn for drag and drop\r\n\t */\r\n\tvar fixHelperModified_fn = function(e, tr) {\r\n\t\tvar $originals = tr.children();\r\n\t\tvar $helper = tr.clone();\r\n\t\t$helper.children().each(function(index) {\r\n\t\t\t$(this).width($originals.eq(index).width());\t\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\treturn $helper;\r\n\t},\r\n\tupdateIndex_fn = function(e, ui) {\r\n\t\tvar theOrder_arr = $(this).sortable('toArray');\r\n\t\t//console.log(theOrder_arr);\r\n\r\n\t\tvar data_obj = {\r\n\t\t\taction: 'admin_pprf_update_order_fn',\r\n\t\t\torder: \t theOrder_arr, \r\n\t\t\tsecurity : ajax_script.nonce\r\n\t\t};\r\n\r\n\t\t$.post(\r\n\t\t\tajax_script.ajaxurl, \r\n\t\t\tdata_obj, \r\n\t\t\tfunction( resp_arr ){\r\n\t\t\t\t//console.log( response_arr );\r\n\t\t\t\tpprf_odd_even_color_fn( resp_arr.data.pprf_id );\r\n\t\t\t}\r\n\t\t)\t\t\t\t\r\n\t};\t\r\n\r\n\tif( $('.pprf-redorder-list.pandarf_order').length != 0 ){\r\n\t\t$('.pprf-redorder-list.pandarf_order').sortable({\r\n\t\t\thelper: fixHelperModified_fn,\r\n\t\t\tcursor: 'move',\r\n\t\t\topacity: 0.7,\r\n\t\t\ttolerance: 'intersect',\t\t\r\n\t\t\tupdate: \t\tupdateIndex_fn,\r\n\t\t\tcancel: \t\t'.pprf-row-load-iframe, .pprf-save-btn, pprf-trash-btn',\r\n\t\t\thandle: \t\t'.pprf-left-col'\r\n\t\t});\t\t\r\n\t}\r\n\r\n\t$(document.body).on('click', '.pprf-row-load-iframe', function( e ){\t\r\n\t\te.stopPropagation();\r\n\t\tvar url_str \t= $( this ).data('url');\r\n\t\tvar ids_str\t \t= $( this ).data('target');\r\n\t\tvar exp_str\t\t= 'panda-repeater-edit-expand-' + ids_str;\r\n\t\tvar iframe_str \t= 'panda-repeater-edit-' + ids_str;\t\t\r\n\t\tvar trash_ele\t= $( this ).parent().children('.pprf-trash-btn');\r\n\t\tif( $( this ).children('.pprf-edit-span').hasClass('dashicons-update') ){ \r\n\t\t\t// restore this item\t\t\r\n\t\t\tpprf_delete_item_fn( trash_ele.data('podid'), trash_ele.data('postid'), trash_ele.data('tb'), trash_ele.data('itemid'), trash_ele.data('userid'), trash_ele.data('iframe_id'), trash_ele.data('poditemid'), 0 );\r\n\t\t} else { \r\n\t\t\tvar addEdit_str\t= ' .pprf-edit';\t\r\n\t\t\tif( $( this ).hasClass('pprf-add') ){\r\n\t\t\t\taddEdit_str\t= '.pprf-add';\t\r\n\t\t\t\tiframe_str \t= 'panda-repeater-add-new-' + ids_str;\r\n\t\t\t\texp_str\t\t= 'panda-repeater-add-new-expand-' + ids_str;\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif( $('#pprf-row-brief-' + ids_str + ' .dashicons' ).hasClass('dashicons-edit') ){\t\t\r\n\t\t\t\t\r\n\t\t\t\t//if iframe not loaded\r\n\t\t\t\t\r\n\t\t\t\tif( $('#' + iframe_str ).attr('src') == '' ){\r\n\t\t\t\t\t$('#' + iframe_str ).attr('src', url_str ); \r\n\t\t\t\t\t$('#' + iframe_str + '-' + 'loader' ).removeClass('hidden');\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$('#' + iframe_str ).show('slow',function(){\r\n\t\t\t\t\t$('#pprf-row-brief-' + ids_str + '' + addEdit_str + ' .dashicons' ).addClass('dashicons-arrow-up');\r\n\t\t\t\t\t$('#pprf-row-brief-' + ids_str + '' + addEdit_str + ' .dashicons' ).removeClass('dashicons-edit');\t\t\r\n\t\t\t\t});\r\n\t\t\t\t$('#' + exp_str ).show();\t\r\n\t\t\t\t$('#' + iframe_str ).on('load', function(){\r\n\t\t\t\t\t\r\n\t\t\t\t\t$('#' + iframe_str + '-' + 'loader' ).addClass('hidden');\t\r\n\t\t\t\t\t//change icon\t\r\n\t\t\t\t\t$('#panda-repeater-save-' + ids_str + '-' + 'loader' ).parent().children('.pprf-save-icon').attr('src', PANDA_PODS_REPEATER_URL + '/images/save-icon.png');\r\n\t\t\t\t\t$('#panda-repeater-save-' + ids_str + '-' + 'loader' ).parent().addClass('pprf-btn-ready');\r\n\t\t\t\t\t$('#panda-repeater-save-' + ids_str + '-' + 'loader' ).addClass('hidden');\r\n\t\t\t\t\t//$('#pprf-row-brief-' + ids_str + '' ).addClass('hidden');\t\r\n\t\t\t\t\t//$('#' + iframe_str )[0].contentWindow.pprf_resize_fn();\r\n\t\t\t\t\t//console.log( $(this).parent().height() );\r\n\t\t\t\t\t$('#pprf-row-brief-' + ids_str + '' + addEdit_str + ' .dashicons' ).addClass('dashicons-arrow-up');\r\n\t\t\t\t\t$('#pprf-row-brief-' + ids_str + '' + addEdit_str + ' .dashicons' ).removeClass('dashicons-edit');\t\t\t\t\t\t\r\n\t\t\t\t});\t\r\n\t\t\t//\tif( $('#pprf-row-brief-' + ids_str + ' .dashicons' ).hasClass('dashicons') ){\t\r\n\r\n\t\t\t\t//}\r\n\t\t\t} else {\r\n\t\t\t\t\r\n\t\t\t\t$('#' + iframe_str ).hide('slow',function(){\r\n\t\t\t\t\t$('#pprf-row-brief-' + ids_str + '' + addEdit_str + ' .dashicons' ).removeClass('dashicons-arrow-up');\r\n\t\t\t\t\t$('#pprf-row-brief-' + ids_str + '' + addEdit_str + ' .dashicons' ).addClass('dashicons-edit');\t\r\n\t\t\t\t});\t\r\n\t\t\t\t$('#' + exp_str ).hide();\t\t\t\t\t\r\n\t\t\t//\tif( $('#pprf-row-brief-' + ids_str + ' .dashicons' ).hasClass('dashicons') ){\t\r\n\t\t\t\t\t\t\r\n\t\t\t//\t}\r\n\t\t\t}\r\n\t\t\t$('#pprf-row-brief-' + ids_str + ' .dashicons-trash' ).removeClass('dashicons-arrow-up');\r\n\t\t}\r\n\t\t\r\n\t});\t\r\n\t/**\r\n\t * click to explan its iframe\r\n\t */\r\n\t//$(\".pprf-expand-bar\").live( 'click', function(){\r\n\t$( document.body ).on('click', '.pprf-expand-bar', function(){\t\t\t\t\r\n\t\tvar ids\t \t= $( this ).data('target');\r\n\t\tvar iframe \t= 'panda-repeater-edit-' + ids;\r\n\t\tif( $( this ).hasClass('pprf-add-expand') ){\r\n\t\t\tiframe \t= 'panda-repeater-add-new-' + ids;\t\t\t\r\n\t\t}\t\r\n\t\tif( typeof document.getElementById( iframe ) != 'undefined' ){\r\n\t\t\t\r\n\t\t\tif( typeof document.getElementById( iframe ).contentWindow.pprf_resize_fn != 'undefined' ){ \r\n\t\t\t\tdocument.getElementById( iframe ).contentWindow.pprf_resize_fn();\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\t/**\r\n\t * click to delete\r\n\t */\r\n\t //$('.pprf-trash-btn').live( 'click', function(){\r\n\t$( document.body ).on('click', '.pprf-trash-btn', function( e ){\t\t\r\n\t\te.stopPropagation();\r\n\t\tvar ids_str\t \t= $( this ).data('target');\r\n\t\tvar iframe_str \t= 'panda-repeater-edit-' + ids_str;\r\n\t\tif( $( this ).hasClass('pprf-add-expand') ){\r\n\t\t\tiframe_str \t= 'panda-repeater-add-new-' + ids_str;\t\t\t\r\n\t\t}\t\r\n\t\tvar trash_int\t= 0;\r\n\t\tif( $( this ).hasClass('pprf-btn-not-trashed') ){\r\n\t\t\ttrash_int\t= 1;\r\n\t\t}\r\n\t\tif( $( this ).hasClass('pprf-btn-trashed') ){\r\n\t\t\ttrash_int\t= 2;\r\n\t\t}\t\r\n\t\tif( $( this ).hasClass('pprf-btn-delete') ){\r\n\t\t\ttrash_int\t= 2;\r\n\t\t}\t\t\t\t\r\n\t\t//document.getElementById( iframe_str ).contentWindow.pprf_delete_item_fn();\r\n\t\tpprf_delete_item_fn( $( this ).data('podid'), $( this ).data('postid'), $( this ).data('tb'), $( this ).data('itemid'), $( this ).data('userid'), $( this ).data('iframe_id'), $( this ).data('poditemid'), trash_int );\r\n\t })\r\n\t \r\n\t //$('.pprf-save-btn').live( 'click', function(){\r\n\t$(document.body).on('click', '.pprf-save-btn', function( e ){\t\t\r\n\t\t e.stopPropagation();\t\r\n\t\t if( $( this ).hasClass( 'pprf-btn-ready' ) ){\r\n\t\t\tvar ids_str\t\t= $( this ).data('target');\r\n\t\t\tvar iframe_str \t= 'panda-repeater-edit-' + ids_str;\r\n\t\t\tif( $( this ).hasClass('pprf-save-new-btn') ){\r\n\t\t\t\tiframe_str \t= 'panda-repeater-add-new-' + ids_str;\r\n\t\t\t}\t\t\t \r\n\t\t\t$('#panda-repeater-save-' + ids_str + '-loader' ).removeClass('hidden');\r\n\t\t\t\r\n\t\t\t$('#' + iframe_str ).contents().find('.pods-submit-button').trigger( \"click\" );\t\r\n\t\t\tpprfChanged_bln\t=\tfalse;\t\t\r\n\r\n\t\t }\r\n\t });\r\n\t \r\n\r\n\t \r\n\t /**\r\n\t * if a pods is is clicked, flag it as saved\r\n\t */\r\n\t $('.toplevel_page_panda-pods-repeater-field .pods-field-input').on('click keyup change', function(){\r\n\t\t// if( typeof $('#pprf-on-page-data').data('saved') != 'undefined' ){\r\n//\t\t\t$('#pprf-on-page-data').data('saved', '1');\t\t\t\r\n//\t\t }\r\n\t\t pprfChanged_bln\t=\ttrue;\r\n\t });\r\n\r\n\t// $('#publishing-action .button, #save-action .button').click( function( evt ){\r\n\t$( document ).on('click', '#publishing-action .button, #save-action .button', function(){\t\t\t\t\r\n\t\t if( pprfChanged_bln ){\r\n\t\t\tevt.preventDefault();\r\n\t\t\tvar leave_bln = confirm( strs_obj.Ignore_changes );\r\n\t\t\tif ( leave_bln == true){\r\n\t\t\t\tpprfChanged_bln\t=\tfalse;\r\n\t\t\t\t$( this ).click();\r\n\t\t\t} \r\n\t\t\tif ( leave_bln == false){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t }\r\n\t });\r\n\r\n\t /**\r\n\t * toggle trashed and current\r\n\t */\r\n\t// $('.pprf-tab .dashicons-trash').live('click', function(){\r\n\t$(document.body).on('click', '.pprf-tab .dashicons-trash', function(){\t\t\t\r\n\t \t\r\n\t \t$( '#panda-repeater-fields-' + $( this).parent().data('target') + ' .pprf-trashed').css('display', 'block');\r\n\t \t$( '#panda-repeater-fields-' + $( this).parent().data('target') + ' .pprf-not-trashed').css('display', 'none');\r\n\t \t$( this ).parent().parent().children('.active').removeClass('active');\r\n\t \t$( this ).parent().addClass('active');\r\n\t \tpprf_odd_even_color_fn( $( this).parent().data('target') );\r\n\r\n\t})\r\n\t//$('.pprf-tab .dashicons-portfolio').live('click', function(){\r\n\t$(document.body).on('click', '.pprf-tab .dashicons-portfolio', function(){\t\t\t\r\n\t \t$( '#panda-repeater-fields-' + $( this).parent().data('target') + ' .pprf-trashed').css('display', 'none');\r\n\t \t$( '#panda-repeater-fields-' + $( this).parent().data('target') + ' .pprf-not-trashed').css('display', 'block');\r\n\t \t$( this ).parent().parent().children('.active').removeClass('active');\r\n\t \t$( this ).parent().addClass('active');\t \t\r\n\t \tpprf_odd_even_color_fn( $( this).parent().data('target') );\r\n\t})\t \r\n \r\n \t/**\r\n \t * remove repeated\r\n \t */\r\n \t//$( '.pprf-dismiss-btn').live('click', function(){ \r\n \t$(document.body).on('click', '.pprf-dismiss-btn', function(){\t\r\n \t\t$('#li-' + $( this ).data('target') + '-repeated' ).remove();\r\n \t})\r\n});\r\n \r\nvar pprfChanged_bln\t=\tfalse;\t"]}