X

Sign Up

or

By signing up I agree to Property Tribes Terms and Conditions


Already a PT member? Log In

Sign Up

Sign Up With Facebook, Twitter, or Google

or


By signing up I agree to Property Tribes Terms and Conditions


Already a PT member? Log In

Log In

or


Don't have an account? Sign Up

Forgot Password

To reset your password just enter the email address you registered with and we'll send you a link to access a new password.


Already a PT member? Log In

Don't have an account? Sign Up

  • damien_mcbraida

    Damien McBraida

    Tribe Topic
    No Replies posted
    '+activate_deactivate); // jQuery('#tribe_talk_id').val(id); if(activate_deactivate == 0 ){ jQuery('#statement').html('You want to Deactivate this Advert!'); jQuery('#message_status').html('Yes, Deactivate it!'); }else{ jQuery('#statement').html('You want to Activate this Advert!'); jQuery('#message_status').html('Yes, Activate it!'); } jQuery('#sponsor_image_status').val(activate_deactivate); jQuery('#sponsor_image_activate_status').modal('show'); } // if(jQuery(document).find("#sponsor_image_table").length){ /* jQuery('#message_status').click(function() { alert('iminmsgstatus'); var tradesman_id = jQuery('#tradesman_id').val(); var tid = jQuery('#thread_id').val(); var activate_deactivate = jQuery('#sponsor_image_status').val(); change_status(tradesman_id,activate_deactivate, tid); });*/ /*function change_status(sponsor_id, activate_deactivate, tid) { // alert(sponsor_id+'--'+tid); jQuery.ajax({ url : '/sponsor_advert/hide_advert', type: 'POST', data: { _token: jQuery("input[name='csrf-token']").val(), id:sponsor_id, status:activate_deactivate, tid:tid }, success: function(response) { // alert(response); console.log(response); // return false; jQuery('#sponsor_image_activate_status').modal('hide'); if(response.status == 1) { jQuery("#sponsor_status_"+sponsor_id).addClass("btn-ok"); jQuery("#sponsor_status_"+sponsor_id).removeClass("btn-disable"); jQuery("#sponsor_status_"+sponsor_id).text("Deactivate"); jQuery("#sponsor_status_"+sponsor_id).attr("data-status",0); if(response.current_active_id > 0) { jQuery("#sponsor_status_"+response.current_active_id).removeClass("btn-ok"); jQuery("#sponsor_status_"+response.current_active_id).addClass("btn-disable"); jQuery("#sponsor_status_"+response.current_active_id).text("Activate"); jQuery("#sponsor_status_"+response.current_active_id).attr("data-status",1); jQuery("#status_msg_"+response.current_active_id).html("Disabled"); } } else if(response.status == 0) { // jQuery("#sponsor_status_"+sponsor_id).addClass("btn-disable"); jQuery("#sponsor_status_"+sponsor_id).removeClass("btn-ok"); jQuery("#sponsor_status_"+sponsor_id).text("Activate"); jQuery("#sponsor_status_"+sponsor_id).attr("data-status",1); } if(response.status == 1) { jQuery("#status_msg_"+sponsor_id).html("Enabled"); } else { jQuery("#status_msg_"+sponsor_id).html("Disabled"); } if(response.result != "success") { toastr.errors(response.message); } else { // toastr.success(response.message); setTimeout(function(){ tempMessage(response.message, "success"); jQuery('.top-notification').delay(3000).fadeOut(300); }); // jQuery('#msg').html($msg); } // setTimeout(function(){jQuery("#sponsor_image_activate_status").hide();},3000) } }); }*/ function tempMessage(message,type){ var msgClass; if(type=="error"){ msgClass="alert-"+type; } if(type=="danger"){ msgClass="alert-"+type; } if(type=="success"){ msgClass="alert-"+type; } if(type=="warning"){ msgClass="alert-"+type; } var top=jQuery(window).scrollTop(); var post=""; if(top>99){ // jQuery(".top-notification").addClass("top-zero"); // jQuery(".top-notification").removeClass("top-navh"); post="top-zero"; }else{ post="top-navh"; // jQuery(".top-notification").addClass("top-navh"); // jQuery(".top-notification").removeClass("top-zero"); } var box='
    '+message+'
    '; //var box='
    '+message+'
    '; // var box='<
    '+message+'
    '; jQuery("body").after(box); } /* var themeInput = document.getElementById('theme'); themeInput.onchange = function() { var theme = 'http://pt-dev.com/public/css' + themeInput.value + '.min.css'; document.getElementById('theme-style').href = theme; };*/ -->