Blog2Social: Social Media Auto Post & Scheduler - Version 4.8.1

Version Description

Bugfix: facebook individualize image and content in scheduling prozess

Download this release

Release Info

Developer Blog2Social
Plugin Icon 128x128 Blog2Social: Social Media Auto Post & Scheduler
Version 4.8.1
Comparing to
See all releases

Code changes from version 4.8.0 to 4.8.1

Files changed (3) hide show
  1. assets/js/b2s/ship.js +39 -190
  2. blog2social.php +2 -2
  3. readme.txt +5 -1
assets/js/b2s/ship.js CHANGED
@@ -245,7 +245,6 @@ jQuery(document).on('click', '.b2s-get-settings-sched-time-default', function ()
245
  var todayMonth = ("0" + (today.getMonth() + 1)).slice(-2);
246
  var todayDate = ("0" + today.getDate()).slice(-2);
247
  var dateToday = today.getFullYear() + "-" + todayMonth + "-" + todayDate;
248
-
249
  var lang = jQuery('#b2sUserLang').val();
250
  if (lang == "de") {
251
  dateTomorrow = tomorrowDate + "." + tomorrowMonth + "." + tomorrow.getFullYear();
@@ -256,20 +255,25 @@ jQuery(document).on('click', '.b2s-get-settings-sched-time-default', function ()
256
  if (jQuery('.b2s-post-item[data-network-id="' + network_id + '"]').is(":visible")) {
257
  time.forEach(function (network_type_time, count) {
258
  if (network_type_time != "") {
259
- jQuery('.b2s-post-item-details-release-input-date-select[data-network-id="' + network_id + '"][data-network-type="' + count + '"]').val('1').trigger("change");
260
- jQuery('.b2s-post-item-details-release-input-time[data-network-id="' + network_id + '"][data-network-type="' + count + '"][data-network-count="0"]').val(network_type_time);
261
- var hours = network_type_time.substring(0, 2);
262
- if (lang == "de") {
263
- var timeparts = network_type_time.split(' ');
264
- if (timeparts[1] == 'AM') {
265
- hours = (timeparts[1] == 'AM') ? hours : (parseInt(hours) + 12);
 
 
 
 
 
 
 
 
 
 
266
  }
267
- }
268
- if (hours < today.getHours()) {
269
- jQuery('.b2s-post-item-details-release-input-date[data-network-id="' + network_id + '"][data-network-type="' + count + '"][data-network-count="0"]').val(dateTomorrow);
270
- } else {
271
- jQuery('.b2s-post-item-details-release-input-date[data-network-id="' + network_id + '"][data-network-type="' + count + '"][data-network-count="0"]').val(dateToday);
272
- }
273
  count++;
274
  }
275
  });
@@ -280,13 +284,10 @@ jQuery(document).on('click', '.b2s-get-settings-sched-time-default', function ()
280
  });
281
  return false;
282
  });
283
-
284
-
285
  jQuery(document).on('click', '.b2s-sidbar-network-auth-btn', function () {
286
  jQuery('#b2s-network-list-modal').modal('show');
287
  return false;
288
  });
289
-
290
  jQuery(document).on('click', '.change-meta-tag', function () {
291
  var attr = jQuery(this).attr('readonly');
292
  if (typeof attr !== typeof undefined && attr !== false) {
@@ -294,7 +295,6 @@ jQuery(document).on('click', '.change-meta-tag', function () {
294
  var networkAuthId = jQuery(this).attr("data-network-auth-id");
295
  var postFormat = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + networkAuthId + ']').val();
296
  var networkId = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + networkAuthId + ']').attr("data-network-id");
297
-
298
  var isMetaChecked = false;
299
  if (networkId == "1" && jQuery('#isOgMetaChecked').val() == "1") {
300
  isMetaChecked = true;
@@ -322,7 +322,6 @@ jQuery(document).on('click', '.change-meta-tag', function () {
322
  }
323
  return false;
324
  });
325
-
326
  // Linkpost change Meta Tags title + desc
327
  jQuery(document).on('keyup', '.change-meta-tag', function () {
328
  var currentText = jQuery(this).val();
@@ -342,8 +341,6 @@ jQuery(document).on('keyup', '.change-meta-tag', function () {
342
  }
343
  return false;
344
  });
345
-
346
-
347
  jQuery(document).on('click', '.b2s-get-settings-sched-time-user', function () {
348
  jQuery('.b2s-server-connection-fail').hide();
349
  jQuery.ajax({
@@ -377,7 +374,6 @@ jQuery(document).on('click', '.b2s-get-settings-sched-time-user', function () {
377
  var todayMonth = ("0" + (today.getMonth() + 1)).slice(-2);
378
  var todayDate = ("0" + today.getDate()).slice(-2);
379
  var dateToday = today.getFullYear() + "-" + todayMonth + "-" + todayDate;
380
-
381
  var lang = jQuery('#b2sUserLang').val();
382
  if (lang == "de") {
383
  dateTomorrow = tomorrowDate + "." + tomorrowMonth + "." + tomorrow.getFullYear();
@@ -388,21 +384,25 @@ jQuery(document).on('click', '.b2s-get-settings-sched-time-user', function () {
388
  if (jQuery('.b2s-post-item[data-network-id="' + network_id + '"]').is(":visible")) {
389
  time.forEach(function (network_type_time, count) {
390
  if (network_type_time != "") {
391
- jQuery('.b2s-post-item-details-release-input-date-select[data-network-id="' + network_id + '"][data-network-type="' + count + '"]').val('1').trigger("change");
392
- jQuery('.b2s-post-item-details-release-input-time[data-network-id="' + network_id + '"][data-network-type="' + count + '"][data-network-count="0"]').val(network_type_time);
393
- var hours = network_type_time.substring(0, 2);
394
- if (lang == "de") {
395
- var timeparts = network_type_time.split(' ');
396
- if (timeparts[1] == 'AM') {
397
- hours = (timeparts[1] == 'AM') ? hours : (parseInt(hours) + 12);
 
 
 
 
 
 
 
 
 
 
398
  }
399
- }
400
-
401
- if (hours < today.getHours()) {
402
- jQuery('.b2s-post-item-details-release-input-date[data-network-id="' + network_id + '"][data-network-type="' + count + '"][data-network-count="0"]').val(dateTomorrow);
403
- } else {
404
- jQuery('.b2s-post-item-details-release-input-date[data-network-id="' + network_id + '"][data-network-type="' + count + '"][data-network-count="0"]').val(dateToday);
405
- }
406
  count++;
407
  }
408
  });
@@ -415,20 +415,16 @@ jQuery(document).on('click', '.b2s-get-settings-sched-time-user', function () {
415
  });
416
  return false;
417
  });
418
-
419
  jQuery('#b2sPreFeatureModal').on('show.bs.modal', function () {
420
  jQuery('.b2s-post-item-details-release-input-date-select-reset').val('0');
421
  });
422
-
423
  jQuery(document).on('click', '.b2s-network-list-add-btn-profeature', function () {
424
  jQuery('#b2s-network-list-modal').modal('hide');
425
  });
426
-
427
  jQuery(document).on('click', '.b2s-post-item-details-release-area-sched-for-all', function () {
428
  var dataNetworkAuthId = jQuery(this).attr('data-network-auth-id');
429
  var dataNetworkCount = 0;
430
  var selMode = jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + dataNetworkAuthId + '"]').val();
431
-
432
  if (jQuery('.b2s-post-item-details-release-area-details-row[data-network-auth-id="' + dataNetworkAuthId + '"][data-network-count="1"]').is(":visible")) {
433
  dataNetworkCount = 1;
434
  }
@@ -450,16 +446,13 @@ jQuery(document).on('click', '.b2s-post-item-details-release-area-sched-for-all'
450
  }
451
  }
452
  });
453
-
454
  //set values
455
  for (var i = 0; i <= dataNetworkCount; i++) {
456
  jQuery('.b2s-post-item-details-release-input-time[data-network-count="' + i + '"]').val(jQuery('.b2s-post-item-details-release-input-time[data-network-count="' + i + '"][data-network-auth-id="' + dataNetworkAuthId + '"]').val());
457
  jQuery('.b2s-post-item-details-release-input-date[data-network-count="' + i + '"]').val(jQuery('.b2s-post-item-details-release-input-date[data-network-count="' + i + '"][data-network-auth-id="' + dataNetworkAuthId + '"]').val());
458
  if (selMode == 2) {
459
  var curInterval = jQuery('.b2s-post-item-details-release-input-interval-select[data-network-count="' + i + '"][data-network-auth-id="' + dataNetworkAuthId + '"]').val();
460
-
461
  jQuery('.b2s-post-item-details-release-input-interval-select[data-network-count="' + i + '"]').val(curInterval);
462
-
463
  if (curInterval == 0) {
464
  jQuery('.b2s-post-item-details-release-input-weeks[data-network-count="' + i + '"]').val(jQuery('.b2s-post-item-details-release-input-weeks[data-network-count="' + i + '"][data-network-auth-id="' + dataNetworkAuthId + '"]').val());
465
  jQuery('.b2s-post-item-details-release-input-lable-day-mo[data-network-count="' + i + '"]').prop('checked', jQuery('.b2s-post-item-details-release-input-lable-day-mo[data-network-count="' + i + '"][data-network-auth-id="' + dataNetworkAuthId + '"').prop('checked'));
@@ -493,19 +486,15 @@ jQuery(document).on('click', '.b2s-post-item-details-release-area-sched-for-all'
493
 
494
  return false;
495
  });
496
-
497
-
498
  jQuery(document).on("click", ".b2s-user-network-settings-post-format", function () {
499
  jQuery('.b2s-settings-user-success').hide();
500
  jQuery('.b2s-settings-user-error').hide();
501
  jQuery('.b2s-server-connection-fail').hide();
502
-
503
  var networkId = jQuery(this).attr("data-network-id");
504
  var networkType = jQuery(this).attr("data-network-type");
505
  var postFormat = jQuery(this).val();
506
  var networkAuthId = jQuery(this).attr("data-network-auth-id");
507
  var postFormatType = jQuery(this).attr("data-post-format-type");
508
-
509
  jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').val(postFormat);
510
  //PostFormat
511
  if (jQuery('.b2s-post-ship-item-post-format-text[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').length > 0) {
@@ -542,10 +531,8 @@ jQuery(document).on("click", ".b2s-user-network-settings-post-format", function
542
  if (jQuery(this).val() == "0" && jQuery('.b2s-post-ship-item-post-format[data-network-auth-id=' + jQuery(this).attr('data-network-auth-id') + ']').is(":visible") && jQuery(this).attr('data-network-auth-id') != networkAuthId) { //other Linkpost by same network
543
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
544
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
545
-
546
  jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + networkAuthId + '"]').attr('src', jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').attr('src'));
547
  jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
548
-
549
  if (jQuery('.b2s-image-remove-btn[data-network-count="-1"][data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]:visible').length == 1) {
550
  jQuery('.b2s-image-remove-btn[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="-1"]').show();
551
  } else {
@@ -557,8 +544,6 @@ jQuery(document).on("click", ".b2s-user-network-settings-post-format", function
557
  });
558
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').show();
559
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').trigger("click");
560
-
561
-
562
  } else {
563
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
564
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
@@ -570,11 +555,9 @@ jQuery(document).on("click", ".b2s-user-network-settings-post-format", function
570
  jQuery('#b2s-post-ship-item-post-format-modal').modal('hide');
571
  return false;
572
  });
573
-
574
  jQuery(document).on("click", ".b2s-post-ship-item-full-text", function () {
575
  jQuery('.b2s-server-connection-fail').hide();
576
  var curSchedCount = jQuery(this).attr('data-network-count');
577
-
578
  jQuery.ajax({
579
  url: ajaxurl,
580
  type: "POST",
@@ -599,18 +582,14 @@ jQuery(document).on("click", ".b2s-post-ship-item-full-text", function () {
599
  });
600
  return false;
601
  });
602
-
603
  jQuery(document).on("click", ".b2s-post-ship-item-message-delete", function () {
604
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
605
  var networkCountId = jQuery(this).attr('data-network-count');
606
  jQuery('.b2s-post-item-details-item-message-input[data-network-count="' + networkCountId + '"][data-network-auth-id="' + networkAuthId + '"').val("");
607
-
608
  initSceditor(networkAuthId);
609
-
610
  networkCount(networkAuthId);
611
  return false;
612
  });
613
-
614
  jQuery(document).on("click", ".b2s-post-ship-item-copy-original-text", function () {
615
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
616
  var networkCountId = jQuery(this).attr('data-network-count');
@@ -618,8 +597,6 @@ jQuery(document).on("click", ".b2s-post-ship-item-copy-original-text", function
618
  networkCount(networkAuthId);
619
  return false;
620
  });
621
-
622
-
623
  jQuery(document).on("click", ".b2s-network-select-btn", function () {
624
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
625
  var networkId = jQuery(this).attr('data-network-id');
@@ -649,7 +626,6 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
649
  if (isMetaChecked && jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').val() == "0" && jQuery('#user_version').val() > 0) {
650
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", false);
651
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", false);
652
-
653
  var dataMetaType = jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').attr("data-meta-type");
654
  if (dataMetaType == "og") {
655
  jQuery('#b2sChangeOgMeta').val("1");
@@ -662,10 +638,8 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
662
  if (jQuery(this).val() == "0" && jQuery('.b2s-post-ship-item-post-format[data-network-auth-id=' + jQuery(this).attr('data-network-auth-id') + ']').is(":visible") && jQuery(this).attr('data-network-auth-id') != networkAuthId) { //other Linkpost by same network
663
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
664
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
665
-
666
  jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + networkAuthId + '"]').attr('src', jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').attr('src'));
667
  jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
668
-
669
  if (jQuery('.b2s-image-remove-btn[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').is(":visible")) {
670
  jQuery('.b2s-image-remove-btn[data-network-auth-id="' + networkAuthId + '"]').show();
671
  if (jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val() == 1) {
@@ -678,10 +652,8 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
678
  return true;
679
  }
680
  });
681
-
682
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').show();
683
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').trigger("click");
684
-
685
  } else {
686
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
687
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
@@ -757,7 +729,6 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
757
  if (data != undefined) {
758
  jQuery('.b2s-network-status-img-loading[data-network-auth-id="' + data.networkAuthId + '"]').hide();
759
  jQuery('.b2s-network-select-btn[data-network-auth-id="' + data.networkAuthId + '"]').removeClass('b2s-network-select-btn-deactivate');
760
-
761
  if (data.result == true) {
762
  jQuery('.b2s-post-item-loading-dummy[data-network-auth-id="' + data.networkAuthId + '"]').remove();
763
  var order = jQuery.parseJSON(jQuery('.b2s-network-navbar-order').val());
@@ -775,7 +746,6 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
775
  }
776
 
777
  activatePortal(data.networkAuthId);
778
-
779
  var dateFormat = "yyyy-mm-dd";
780
  var language = "en";
781
  var showMeridian = true;
@@ -806,16 +776,12 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
806
  defaultTime: 'current',
807
  snapToStep: true
808
  });
809
-
810
-
811
  jQuery(".b2s-post-item-details-release-input-date").datepicker().on('changeDate', function (e) {
812
  checkSchedDateTime(jQuery(this).attr('data-network-auth-id'));
813
  });
814
  jQuery('.b2s-post-item-details-release-input-time').timepicker().on('changeTime.timepicker', function (e) {
815
  checkSchedDateTime(jQuery(this).attr('data-network-auth-id'));
816
-
817
  });
818
-
819
  //Check Text Limit
820
  var textLimit = jQuery('.b2s-post-item-details-item-message-input[data-network-count="-1"][data-network-auth-id="' + data.networkAuthId + '"]').attr('data-network-text-limit');
821
  if (textLimit != "0") {
@@ -836,7 +802,6 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
836
 
837
  //Time zone
838
  jQuery('.b2s-settings-time-zone-text').html(jQuery('#user_timezone_text').val());
839
-
840
  //PostFormat
841
  if (jQuery('.b2s-post-ship-item-post-format-text[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').length > 0) {
842
  var postFormatText = JSON.parse(jQuery('.b2sNetworkSettingsPostFormatText').val());
@@ -845,7 +810,6 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
845
 
846
  jQuery('.b2s-post-ship-item-post-format-text[data-network-auth-id="' + data.networkAuthId + '"]').html(postFormatText[postFormatType][jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').val()]);
847
  jQuery('.b2s-post-item-details-post-format[data-network-auth-id="' + data.networkAuthId + '"]').val(jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').val());
848
-
849
  var isMetaChecked = false;
850
  if (data.networkId == "1" && jQuery('#isOgMetaChecked').val() == "1") {
851
  isMetaChecked = true;
@@ -869,10 +833,8 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
869
  if (jQuery(this).val() == "0" && jQuery('.b2s-post-ship-item-post-format[data-network-auth-id=' + jQuery(this).attr('data-network-auth-id') + ']').is(":visible") && jQuery(this).attr('data-network-auth-id') != data.networkAuthId) { //other Linkpost by same network
870
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + data.networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
871
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + data.networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
872
-
873
  jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + data.networkAuthId + '"]').attr('src', jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').attr('src'));
874
  jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + data.networkAuthId + '"]').val(jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
875
-
876
  if (jQuery('.b2s-image-remove-btn[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').is(":visible")) {
877
  jQuery('.b2s-image-remove-btn[data-network-auth-id="' + data.networkAuthId + '"]').show();
878
  } else {
@@ -884,7 +846,6 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
884
  });
885
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').show();
886
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').trigger("click");
887
-
888
  } else {
889
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + data.networkAuthId + '"]').prop("readonly", true);
890
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + data.networkAuthId + '"]').prop("readonly", true);
@@ -926,7 +887,6 @@ jQuery(document).on("click", ".b2s-network-select-btn", function () {
926
  }
927
  return false;
928
  });
929
-
930
  jQuery(document).on('click', '.b2s-post-item-details-url-image', function () {
931
  var networkAuthId = jQuery(this).attr("data-network-auth-id");
932
  var networkCountId = jQuery(this).attr("data-network-count");
@@ -934,7 +894,6 @@ jQuery(document).on('click', '.b2s-post-item-details-url-image', function () {
934
 
935
  var postFormat = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + networkAuthId + ']').val();
936
  var networkId = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + networkAuthId + ']').attr("data-network-id");
937
-
938
  var isMetaChecked = false;
939
  if (networkId == "1" && jQuery('#isOgMetaChecked').val() == "1") {
940
  isMetaChecked = true;
@@ -960,11 +919,9 @@ jQuery(document).on('click', '.b2s-post-item-details-url-image', function () {
960
  }
961
  return false;
962
  });
963
-
964
  jQuery(document).on('click', '.b2s-submit-btn-scroll', function () {
965
  jQuery('.b2s-submit-btn').trigger('click');
966
  });
967
-
968
  jQuery(document).on('click', '.b2s-post-ship-item-post-format', function () {
969
  if (jQuery('#user_version').val() >= 1) {
970
  jQuery('.b2s-user-network-settings-post-format-area').hide();
@@ -974,7 +931,6 @@ jQuery(document).on('click', '.b2s-post-ship-item-post-format', function () {
974
  jQuery('.b2s-user-network-settings-post-format[data-network-type="' + jQuery(this).attr('data-network-type') + '"][data-network-id="' + jQuery(this).attr('data-network-id') + '"]').removeClass('b2s-settings-checked');
975
  var currentPostFormat = jQuery('.b2s-post-item-details-post-format[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val();
976
  jQuery('.b2s-user-network-settings-post-format[data-network-type="' + jQuery(this).attr('data-network-type') + '"][data-network-id="' + jQuery(this).attr('data-network-id') + '"][data-post-format="' + currentPostFormat + '"]').addClass('b2s-settings-checked');
977
-
978
  jQuery('#b2s-post-ship-item-post-format-network-display-name').html(jQuery('.b2s-post-item-details-network-display-name[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').text().toUpperCase());
979
  }
980
  jQuery('.b2s-post-format-settings-info').hide();
@@ -986,20 +942,16 @@ jQuery(document).on('click', '.b2s-post-ship-item-post-format', function () {
986
  }
987
  return false;
988
  });
989
-
990
  jQuery(document).on('click', '.b2s-btn-trigger-post-ship-item-post-format', function () {
991
  jQuery('.b2s-post-ship-item-post-format[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').trigger('click');
992
  return false;
993
  });
994
-
995
  jQuery(document).on('click', '.b2s-post-item-details-release-input-days', function () {
996
  jQuery('.b2s-post-item-details-release-input-days[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').removeClass('error');
997
  });
998
-
999
  jQuery(document).on('change', '.b2s-post-item-details-release-input-time', function () {
1000
  jQuery('.b2s-post-item-details-release-input-time[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').removeClass('error');
1001
  });
1002
-
1003
  jQuery(document).on('change', '.b2s-post-item-details-release-input-date', function () {
1004
  jQuery('.b2s-post-item-details-release-input-date[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').removeClass('error');
1005
  });
@@ -1007,7 +959,6 @@ jQuery('.b2s-network-details-mandant-select').change(function () {
1007
  hideDuplicateAuths();
1008
  chooseMandant();
1009
  });
1010
-
1011
  jQuery(document).on('change', '.b2s-post-item-details-item-group-select', function () {
1012
  if (jQuery(this).attr('data-change-network-display-name') == 'true') {
1013
  var label = jQuery(this.options[this.selectedIndex]).closest('optgroup').prop('label');
@@ -1016,8 +967,6 @@ jQuery(document).on('change', '.b2s-post-item-details-item-group-select', functi
1016
  }
1017
  return false;
1018
  });
1019
-
1020
-
1021
  //select recurrent sched interval mode
1022
  jQuery(document).on('change', '.b2s-post-item-details-release-input-interval-select', function () {
1023
  var interval = jQuery(this).val();
@@ -1026,8 +975,6 @@ jQuery(document).on('change', '.b2s-post-item-details-release-input-interval-sel
1026
  releaseChooseInterval(interval, selectorInput, dataCount);
1027
  return false;
1028
  });
1029
-
1030
-
1031
  //select shipping mode
1032
  jQuery(document).on('change', '.b2s-post-item-details-release-input-date-select', function () {
1033
  var dataNetworkCount = 0;
@@ -1081,7 +1028,6 @@ jQuery(document).on('change', '.b2s-post-item-details-release-input-date-select'
1081
  }
1082
 
1083
  checkSchedDateTime(jQuery(this).attr('data-network-auth-id'));
1084
-
1085
  if (dataNetworkCount == 2) {
1086
  jQuery('.b2s-post-item-details-release-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="0"]').hide();
1087
  jQuery('.b2s-post-item-details-release-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="1"]').hide();
@@ -1095,15 +1041,11 @@ jQuery(document).on('change', '.b2s-post-item-details-release-input-date-select'
1095
  }
1096
  releaseChoose(jQuery(this).val(), jQuery(this).attr('data-network-auth-id'), dataNetworkCount);
1097
  });
1098
-
1099
-
1100
  jQuery(document).on('click', '#b2s-network-sched-post-info-ignore', function () {
1101
  jQuery('#b2sSchedPostInfoIgnore').val("1");
1102
  jQuery('.b2s-submit-btn').trigger("click");
1103
  return false;
1104
  });
1105
-
1106
-
1107
  jQuery(document).on('click', '.b2s-re-share-btn', function () {
1108
  jQuery(".b2s-settings-user-sched-time-area").show();
1109
  jQuery('#b2s-sidebar-wrapper').show();
@@ -1118,7 +1060,6 @@ jQuery(document).on('click', '.b2s-re-share-btn', function () {
1118
  window.scrollTo(0, 0);
1119
  jQuery('.b2s-reporting-btn-area').hide();
1120
  jQuery('#b2sSchedPostInfoIgnore').val("0");
1121
-
1122
  //Calendar close for resfresh
1123
  jQuery('.b2s-toogle-calendar-btn').each(function () {
1124
  if (!jQuery(this).hasClass('hide')) {
@@ -1131,22 +1072,16 @@ jQuery(document).on('click', '.b2s-re-share-btn', function () {
1131
  calendar.removeClass('show');
1132
  calendar.addClass('hide');
1133
  jQuery('.b2s-calendar-filter-area[data-network-auth-id="' + networkAuthId + '"]').addClass('hide');
1134
-
1135
  }
1136
  });
1137
-
1138
-
1139
  return false;
1140
  });
1141
-
1142
-
1143
  jQuery(document).on('click', '.b2s-post-item-details-release-input-add', function () {
1144
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
1145
  var netCount = jQuery(this).attr('data-network-count');
1146
  var netCountNext = parseInt(netCount) + 1;
1147
  var curMode = jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + networkAuthId + '"]').val();
1148
  jQuery(this).hide();
1149
-
1150
  jQuery('.b2s-post-item-details-release-input-hide[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCount + '"]').hide();
1151
  jQuery('.b2s-post-item-details-release-input-hide[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').show();
1152
  jQuery('.b2s-post-item-details-release-area-details-row[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').show();
@@ -1154,7 +1089,6 @@ jQuery(document).on('click', '.b2s-post-item-details-release-input-add', functio
1154
  jQuery('.b2s-post-item-details-release-input-date[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').removeAttr('disabled');
1155
  jQuery('.b2s-post-item-details-release-input-time[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').show();
1156
  jQuery('.b2s-post-item-details-release-input-time[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').removeAttr('disabled');
1157
-
1158
  if (curMode == 1) {
1159
  //since 4.9.0 custom content
1160
  jQuery('.b2s-post-item-details-release-customize-sched-area-details-row[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').show();
@@ -1178,7 +1112,6 @@ jQuery(document).on('click', '.b2s-post-item-details-release-input-add', functio
1178
 
1179
  return false;
1180
  });
1181
-
1182
  jQuery(document).on('click', '.b2s-post-item-details-release-input-hide', function () {
1183
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
1184
  var netCount = jQuery(this).attr('data-network-count');
@@ -1187,7 +1120,6 @@ jQuery(document).on('click', '.b2s-post-item-details-release-input-hide', functi
1187
  jQuery('.b2s-post-item-details-release-area-details-row' + selectorInput).hide();
1188
  jQuery('.b2s-post-item-details-release-input-hide[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountBevor + '"]').show();
1189
  jQuery('.b2s-post-item-details-release-input-add[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountBevor + '"]').show();
1190
-
1191
  //clean all fields
1192
  jQuery('.b2s-post-item-details-release-input-date' + selectorInput).prop('disabled', true);
1193
  jQuery('.b2s-post-item-details-release-input-time' + selectorInput).prop('disabled', true);
@@ -1195,12 +1127,10 @@ jQuery(document).on('click', '.b2s-post-item-details-release-input-hide', functi
1195
  jQuery('.b2s-post-item-details-release-input-weeks' + selectorInput).prop('disabled', true);
1196
  jQuery('.b2s-post-item-details-release-input-days' + selectorInput).prop('checked', false);
1197
  jQuery('.b2s-post-item-details-release-input-days' + selectorInput).prop('disabled', true);
1198
-
1199
  //since 4.9.0 custom content
1200
  jQuery('.b2s-post-item-details-item-message-input' + selectorInput).prop('disabled', true);
1201
  jQuery('.b2s-post-item-details-item-message-input' + selectorInput).removeClass('error');
1202
  jQuery('.b2s-post-item-details-release-customize-sched-area-details-row' + selectorInput).hide();
1203
-
1204
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).prop('disabled', true);
1205
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).val("0");
1206
  jQuery('.b2s-post-item-details-release-area-label-duration-month' + selectorInput).hide();
@@ -1217,10 +1147,8 @@ jQuery(document).on('click', '.b2s-post-item-details-release-input-hide', functi
1217
  jQuery('.b2s-post-item-details-release-area-label-select-timespan' + selectorInput).hide();
1218
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).prop('disabled', true);
1219
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).val("1");
1220
-
1221
  return false;
1222
  });
1223
-
1224
  jQuery(document).on("keyup", ".complete_network_url", function () {
1225
  var url = jQuery(this).val();
1226
  jQuery(this).removeClass("error");
@@ -1234,17 +1162,14 @@ jQuery(document).on("keyup", ".complete_network_url", function () {
1234
  jQuery(this).val(url);
1235
  }
1236
  });
1237
-
1238
  jQuery(document).on('click', '.scroll-to-top', function () {
1239
  window.scrollTo(0, 0);
1240
  return false;
1241
  });
1242
-
1243
  jQuery(document).on('click', '.scroll-to-bottom', function () {
1244
  window.scrollTo(0, document.body.scrollHeight);
1245
  return false;
1246
  });
1247
-
1248
  jQuery(document).on('click', '.b2s-post-item-details-preview-url-reload', function () {
1249
  var re = new RegExp(/^(https?:\/\/)?[a-zA-Z0-99ÄÖÜöäü-]+([\-\.]{1}[a-zA-Z0-99ÄÖÜöäü-]+)*\.[a-zA-Z0-9-]{2,20}(:[0-9]{1,5})?(\/.*)?$/);
1250
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
@@ -1300,15 +1225,12 @@ jQuery(document).on('click', '.b2s-post-item-details-preview-url-reload', functi
1300
  jQuery('.b2s-post-item-details-item-url-input[data-network-auth-id="' + networkAuthId + '"]').addClass('error');
1301
  }
1302
  });
1303
-
1304
  jQuery(document).on('click', '.b2s-select-image-modal-open', function () {
1305
  var metaType = jQuery(this).attr('data-meta-type');
1306
  var authId = jQuery(this).attr('data-network-auth-id');
1307
  var countId = jQuery(this).attr('data-network-count');
1308
-
1309
  var postFormat = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + authId + ']').val();
1310
  var networkId = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + authId + ']').attr("data-network-id");
1311
-
1312
  var isMetaChecked = false;
1313
  if (networkId == "1" && jQuery('#isOgMetaChecked').val() == "1") {
1314
  isMetaChecked = true;
@@ -1336,7 +1258,6 @@ jQuery(document).on('click', '.b2s-select-image-modal-open', function () {
1336
  var content = "<img class='b2s-post-item-network-image-selected-account' height='22px' src='" + jQuery('.b2s-post-item-network-image[data-network-auth-id="' + authId + '"]').attr('src') + "' /> " + jQuery('.b2s-post-item-details-network-display-name[data-network-auth-id="' + authId + '"]').html();
1337
  jQuery('.b2s-selected-network-for-image-info').html(content);
1338
  jQuery('#b2sInsertImageType').val("0");
1339
-
1340
  if (typeof metaType !== 'undefined') {
1341
  jQuery('.b2s-image-change-this-network').attr('data-meta-type', metaType);
1342
  } else {
@@ -1347,12 +1268,10 @@ jQuery(document).on('click', '.b2s-select-image-modal-open', function () {
1347
  imageSize();
1348
  return false;
1349
  });
1350
-
1351
  jQuery(document).on('click', '.b2s-image-remove-btn', function () {
1352
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
1353
  var networkCountId = jQuery(this).attr('data-network-count');
1354
  var defaultImage = jQuery('#b2sDefaultNoImage').val();
1355
-
1356
  //default
1357
  if (networkCountId == -1) {
1358
  jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + networkAuthId + '"]').attr('src', defaultImage);
@@ -1387,7 +1306,6 @@ jQuery(document).on('click', '.b2s-image-remove-btn', function () {
1387
 
1388
  return false;
1389
  });
1390
-
1391
  jQuery(document).on('click', '.b2s-image-change-this-network', function () {
1392
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
1393
  var networkCountId = jQuery(this).attr('data-network-count');
@@ -1450,11 +1368,8 @@ jQuery(document).on('click', '.b2s-image-change-this-network', function () {
1450
  jQuery('.b2s-upload-image-no-permission').hide();
1451
  jQuery('.b2s-upload-image-free-version-info').hide();
1452
  jQuery('#b2s-network-select-image').modal('hide');
1453
-
1454
  return false;
1455
  });
1456
-
1457
-
1458
  jQuery(document).on('change', '.b2s-post-item-details-relay', function () {
1459
  if (jQuery(this).attr('data-user-version') == 0) {
1460
  jQuery(this).prop("checked", false);
@@ -1474,7 +1389,6 @@ jQuery(document).on('change', '.b2s-post-item-details-relay', function () {
1474
  jQuery('.b2s-post-item-details-relay-input-account[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="0"]').removeAttr('disabled');
1475
  jQuery('.b2s-post-item-details-relay-input-delay[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="0"]').removeAttr('disabled');
1476
  jQuery('.b2s-post-item-details-relay-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="0"]').show();
1477
-
1478
  //Relay Html Data
1479
  if (jQuery('.b2s-post-item-details-relay-input-account[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="0"]').has('option').length == 0) {
1480
  var optionData = window.atob(jQuery('#b2sRelayAccountData').val());
@@ -1498,8 +1412,6 @@ jQuery(document).on('change', '.b2s-post-item-details-relay', function () {
1498
  }
1499
  return false;
1500
  });
1501
-
1502
-
1503
  jQuery(document).on('click', '.b2s-post-item-details-relay-input-add', function () {
1504
  var netCount = jQuery(this).attr('data-network-count');
1505
  var netCountNext = parseInt(netCount) + 1;
@@ -1513,7 +1425,6 @@ jQuery(document).on('click', '.b2s-post-item-details-relay-input-add', function
1513
  jQuery('.b2s-post-item-details-relay-input-delay[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCountNext + '"]').removeAttr('disabled');
1514
  jQuery('.b2s-post-item-details-relay-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCountNext + '"]').show();
1515
  jQuery('.b2s-post-item-details-relay-input-hide[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCountNext + '"]').show();
1516
-
1517
  //Relay Html Data
1518
  if (jQuery('.b2s-post-item-details-relay-input-account[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCountNext + '"]').has('option').length == 0) {
1519
  var optionData = window.atob(jQuery('#b2sRelayAccountData').val());
@@ -1522,7 +1433,6 @@ jQuery(document).on('click', '.b2s-post-item-details-relay-input-add', function
1522
 
1523
  return false;
1524
  });
1525
-
1526
  jQuery(document).on('click', '.b2s-post-item-details-relay-input-hide', function () {
1527
  var netCount = jQuery(this).attr('data-network-count');
1528
  jQuery('.b2s-post-item-relay-area-details-row[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCount + '"]').hide();
@@ -1534,7 +1444,6 @@ jQuery(document).on('click', '.b2s-post-item-details-relay-input-hide', function
1534
  jQuery('.b2s-post-item-details-relay-input-delay[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCount + '"]').prop('disabled', true);
1535
  jQuery('.b2s-post-item-details-relay-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCount + '"]').hide()
1536
  jQuery('.b2s-post-item-details-relay-input-hide[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCount + '"]').hide();
1537
-
1538
  if (netCount >= 1) {
1539
  var before = netCount - 1;
1540
  jQuery('.b2s-post-item-details-relay-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + before + '"]').show();
@@ -1542,8 +1451,6 @@ jQuery(document).on('click', '.b2s-post-item-details-relay-input-hide', function
1542
 
1543
  return false;
1544
  });
1545
-
1546
-
1547
  jQuery(document).on('click', '.b2s-image-change-all-network', function () {
1548
  jQuery('.b2s-post-item-details-item-message-input-allow-html').each(function () {
1549
  var sce = jQuery(this).sceditor('instance');
@@ -1559,7 +1466,6 @@ jQuery(document).on('click', '.b2s-image-change-all-network', function () {
1559
  jQuery('#b2s_blog_default_image').val(jQuery('input[name=image_url]:checked').val());
1560
  jQuery('.b2s-post-item-details-url-image').removeClass('b2s-img-required');
1561
  jQuery('.b2s-image-url-hidden-field').val(jQuery('input[name=image_url]:checked').val());
1562
-
1563
  jQuery('.b2s-image-remove-btn').show();
1564
  var networkCountId = jQuery(this).attr('data-network-count');
1565
  if (networkCountId >= 0) {
@@ -1569,18 +1475,14 @@ jQuery(document).on('click', '.b2s-image-change-all-network', function () {
1569
  jQuery('.b2s-upload-image-invalid-extension').hide();
1570
  jQuery('.b2s-upload-image-no-permission').hide();
1571
  jQuery('.b2s-upload-image-free-version-info').hide();
1572
-
1573
  jQuery('.b2sChangeOgMeta').val("1");
1574
  jQuery('.b2sChangeCardMeta').val("1");
1575
-
1576
  jQuery('#b2s-network-select-image').modal('hide');
1577
  return false;
1578
  });
1579
-
1580
  jQuery(document).on('click', '.b2s-upload-image', function () {
1581
  if (typeof wp !== 'undefined' && wp.media && wp.media.editor) {
1582
  jQuery('#b2s-network-select-image').modal('hide');
1583
-
1584
  wpMedia = wp.media({
1585
  title: jQuery('#b2s_wp_media_headline').val(),
1586
  button: {
@@ -1590,7 +1492,6 @@ jQuery(document).on('click', '.b2s-upload-image', function () {
1590
  library: {type: 'image'}
1591
  });
1592
  wpMedia.open();
1593
-
1594
  wpMedia.on('select', function () {
1595
  var validExtensions = ['jpg', 'jpeg', 'png'];
1596
  var attachment = wpMedia.state().get('selection').first().toJSON();
@@ -1619,9 +1520,7 @@ jQuery(document).on('click', '.b2s-upload-image', function () {
1619
  '<input type="radio" value="' + attachment.url + '" class="checkNetworkImage" name="image_url" id="b2s-image-count-' + count + '">' +
1620
  '</div>' +
1621
  '</div>';
1622
-
1623
  jQuery('.b2s-image-choose-area').html(jQuery('.b2s-image-choose-area').html() + content);
1624
-
1625
  jQuery('.b2s-image-change-btn-area').show();
1626
  jQuery('.b2s-choose-image-no-image-info-text').hide();
1627
  jQuery('.b2s-choose-image-no-image-extra-btn').hide();
@@ -1629,47 +1528,38 @@ jQuery(document).on('click', '.b2s-upload-image', function () {
1629
  jQuery('input[name=image_url]:last').prop("checked", true);
1630
  jQuery('#b2s-network-select-image').modal('show');
1631
  imageSize();
1632
-
1633
  });
1634
  } else {
1635
  jQuery('.b2s-upload-image-no-permission').show();
1636
  }
1637
  return false;
1638
  });
1639
-
1640
  jQuery(document).on('click', '.b2s-upload-image-free-version', function () {
1641
  jQuery('.b2s-upload-image-free-version-info').show();
1642
  });
1643
-
1644
-
1645
  jQuery("#b2sNetworkSent").keypress(function (e) {
1646
  if (e.keyCode == 13 && e.target.tagName == "INPUT")
1647
  return false;
1648
  });
1649
-
1650
  jQuery.validator.addMethod("checkUrl", function (value, element, regexp) {
1651
  var re = new RegExp(regexp);
1652
  return this.optional(element) || re.test(value);
1653
  }, "Invalid Url");
1654
-
1655
  jQuery.validator.addClassRules("b2s-post-item-details-item-url-input", {
1656
  checkUrl: /^(https?:\/\/)?[a-zA-Z0-99ÄÖÜöäü-]+([\-\.]{1}[a-zA-Z0-99ÄÖÜöäü-]+)*\.[a-zA-Z0-9-]{2,20}(:[0-9]{1,5})?(\/.*)?$/
1657
  });
1658
-
1659
  //Twitter TOS 032018 - protected multiple accounts with same content to same time
1660
  jQuery.validator.addMethod("unique", function (value, element, params) {
1661
  var curNetworkAuthId = jQuery(element).attr('data-network-auth-id');
1662
  var prefix = params;
1663
  var selector = jQuery.validator.format("[name!='{0}'][unique='{1}']", element.name, prefix);
1664
  var matches = new Array();
1665
-
1666
  //TOS Network Twitter 032018
1667
  jQuery('.b2s-unique-content').hide();
1668
  jQuery('.tw-textarea-input').removeClass('error');
1669
-
1670
  jQuery(selector).each(function (index, item) {
1671
  //none disabled elements || ignore default content if curSchedMode=1
1672
- if (!jQuery(item).is(':not(:disabled)') || (jQuery(item).attr('data-network-count') == -1 && jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + jQuery(item).attr('data-network-auth-id') + '"] option[value="1"]:selected').length > 0)) {
1673
  return true;
1674
  }
1675
  if (jQuery.trim(value) == jQuery.trim(jQuery(item).val())) {
@@ -1678,20 +1568,16 @@ jQuery.validator.addMethod("unique", function (value, element, params) {
1678
  matches.push(item);
1679
  }
1680
  });
1681
-
1682
  if (matches.length != 0) {
1683
  jQuery('.b2s-unique-content[data-network-auth-id="' + curNetworkAuthId + '"]').show();
1684
  }
1685
  return matches.length == 0;
1686
  });
1687
-
1688
  jQuery.validator.classRuleSettings.unique = {
1689
  unique: true
1690
  };
1691
-
1692
  jQuery.validator.addMethod("checkTags", function (value, element, test) {
1693
  var allowed_tags = ['p', 'h1', 'h2', 'br', 'i', 'b', 'a', 'img'];
1694
-
1695
  var tags = value.match(/(<([^>]+)>)/ig);
1696
  if (tags !== null && tags.length > 0) {
1697
  if (jQuery(element).hasClass('b2s-post-item-details-item-message-input-allow-html')) {
@@ -1713,14 +1599,9 @@ jQuery.validator.addMethod("checkTags", function (value, element, test) {
1713
  }
1714
  return true;
1715
  });
1716
-
1717
  jQuery.validator.addClassRules('b2s-post-item-details-item-message-input', {'checkTags': true});
1718
-
1719
  jQuery.validator.addClassRules('b2s-post-item-details-release-input-date-select', {'checkSched': true});
1720
-
1721
  jQuery.validator.addClassRules('b2s-post-item-details-item-title-input', {required: true});
1722
-
1723
-
1724
  jQuery.validator.addMethod('checkSched', function (value, element, rest) {
1725
  if (jQuery(element).is(':not(:disabled)') && jQuery(element).val() != 0) {
1726
  var networkAuthId = jQuery(element).attr('data-network-auth-id');
@@ -1764,7 +1645,6 @@ jQuery.validator.addMethod('checkSched', function (value, element, rest) {
1764
  }
1765
  return true;
1766
  });
1767
-
1768
  jQuery("#b2sNetworkSent").validate({
1769
  ignore: "",
1770
  errorPlacement: function () {
@@ -1823,11 +1703,9 @@ jQuery("#b2sNetworkSent").validate({
1823
  return false;
1824
  }
1825
  });
1826
-
1827
  jQuery('#b2s-network-list-modal').on('show.bs.modal', function (e) {
1828
  jQuery('.b2s-network-list-modal-mandant').html(jQuery(".b2s-network-details-mandant-select option:selected").text());
1829
  });
1830
-
1831
  jQuery(window).on("load", function () {
1832
  var showMeridian = true;
1833
  if (jQuery('#b2sUserLang').val() == 'de') {
@@ -1841,12 +1719,9 @@ jQuery(window).on("load", function () {
1841
  defaultTime: 'current'
1842
  });
1843
  });
1844
-
1845
-
1846
  jQuery('#b2s-save-time-settings-btn-trigger').on('click', function () {
1847
  jQuery('#b2s-save-time-settings-btn').trigger('click');
1848
  });
1849
-
1850
  jQuery('#b2sSaveUserSettingsSchedTime').validate({
1851
  ignore: "",
1852
  errorPlacement: function () {
@@ -1879,7 +1754,6 @@ jQuery('#b2sSaveUserSettingsSchedTime').validate({
1879
  return false;
1880
  }
1881
  });
1882
-
1883
  jQuery(document).on('click', '.b2s-loading-area-save-profile-change', function () {
1884
  var selectedAuth = new Array();
1885
  jQuery('.b2s-network-list.active').each(function () {
@@ -1905,7 +1779,6 @@ jQuery(document).on('click', '.b2s-loading-area-save-profile-change', function (
1905
  jQuery('.b2s-ship-settings-save').show();
1906
  window.scrollTo(0, 0);
1907
  var mandantId = jQuery('.b2s-network-details-mandant-select').val();
1908
-
1909
  jQuery('.b2s-network-list').each(function () {
1910
  var jsonMandantIds = jQuery(this).parents('.b2s-sidbar-wrapper-nav-li').attr('data-mandant-id');
1911
  if (jsonMandantIds !== undefined) {
@@ -1919,7 +1792,6 @@ jQuery(document).on('click', '.b2s-loading-area-save-profile-change', function (
1919
  }
1920
  });
1921
  jQuery(this).parents('.b2s-sidbar-wrapper-nav-li').attr('data-mandant-id', JSON.stringify(newMandant));
1922
-
1923
  } else if (jsonMandantIds.indexOf(mandantId) == -1 && jQuery(this).hasClass('active')) {
1924
  //add
1925
  jsonMandantIds.push(mandantId);
@@ -1931,21 +1803,18 @@ jQuery(document).on('click', '.b2s-loading-area-save-profile-change', function (
1931
  }
1932
  });
1933
  });
1934
-
1935
  window.addEventListener('message', function (e) {
1936
  if (e.origin == jQuery('#b2sServerUrl').val()) {
1937
  var data = JSON.parse(e.data);
1938
  loginSuccess(data.networkId, data.networkType, data.displayName, data.networkAuthId, data.mandandId);
1939
  }
1940
  });
1941
-
1942
  jQuery.xhrPool.abortAll = function () { // our abort function
1943
  jQuery(this).each(function (idx, jqXHR) {
1944
  jqXHR.abort();
1945
  });
1946
  jQuery.xhrPool.length = 0
1947
  };
1948
-
1949
  function loadingDummyShow(networkAuthId, networkId) {
1950
  jQuery('.b2s-post-item-connection-fail-dummy[data-network-auth-id="' + networkAuthId + '"]').remove();
1951
  var html = '<div class="b2s-post-item b2s-post-item-loading-dummy" data-network-auth-id="' + networkAuthId + '">'
@@ -1999,7 +1868,6 @@ function loadingDummyConnectionFail(networkAuthId, networkId) {
1999
  + '</div>'
2000
  + '</div>'
2001
  + '</div>';
2002
-
2003
  jQuery('.b2s-post-item-loading-dummy[data-network-auth-id="' + networkAuthId + '"]').replaceWith(html);
2004
  }
2005
 
@@ -2051,7 +1919,6 @@ function init(firstrun) {
2051
 
2052
  function initSceditor(networkAuthId) {
2053
  var sceditor = jQuery('.b2s-post-item-details-item-message-input-allow-html[data-network-auth-id="' + networkAuthId + '"]').sceditor('instance');
2054
-
2055
  if (typeof sceditor !== 'undefined' && typeof sceditor.destroy == 'function') {
2056
  sceditor.destroy();
2057
  }
@@ -2062,9 +1929,7 @@ function initSceditor(networkAuthId) {
2062
  autoUpdate: true,
2063
  emoticonsEnabled: false
2064
  });
2065
-
2066
  var sceditor = jQuery('.b2s-post-item-details-item-message-input-allow-html[data-network-auth-id="' + networkAuthId + '"]').sceditor('instance');
2067
-
2068
  if (typeof sceditor !== 'undefined' && typeof sceditor.destroy == 'function') {
2069
  sceditor.keyUp(function () {
2070
  jQuery(this).parents('.b2s-post-item-details').find('.b2s-post-item-countChar').html(jQuery(this).prev('.b2s-post-item-details-item-message-input').sceditor('instance').getBody().text().length);
@@ -2094,7 +1959,6 @@ function imageSize() {
2094
  var width = this.naturalWidth;
2095
  var height = this.naturalHeight;
2096
  jQuery(this).parents('.b2s-image-item').find('.b2s-image-item-caption-resolution').html(width + 'x' + height);
2097
-
2098
  if (width == 0)
2099
  {
2100
  setTimeout(function () {
@@ -2156,7 +2020,6 @@ function activatePortal(networkAuthId, check) {
2156
  }
2157
  }
2158
  });
2159
-
2160
  //Customize Content
2161
  if (jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + networkAuthId + '"]').val() == 1) {
2162
  jQuery('.b2s-image-remove-btn[data-network-auth-id="' + networkAuthId + '"][data-network-count="-1"]').hide();
@@ -2230,7 +2093,6 @@ function checkImageByImageNetworks() {
2230
  }
2231
  }
2232
  });
2233
-
2234
  return result;
2235
  }
2236
 
@@ -2254,17 +2116,14 @@ function releaseChoose(choose, dataNetworkAuthId, dataNetworkCount) {
2254
  jQuery('.b2s-post-item-details-release-input-date' + selectorInput).prop('disabled', true);
2255
  jQuery('.b2s-post-item-details-release-customize-sched-area-details-row' + selectorInput).hide();
2256
  jQuery('.b2s-post-item-sched-customize-text' + selectorInput).prop('disabled', true);
2257
-
2258
  jQuery('.b2s-post-item-details-release-input-date' + selectorInput).hide();
2259
  jQuery('.b2s-post-item-details-release-input-time' + selectorInput).hide();
2260
  jQuery('.b2s-post-item-details-release-input-time' + selectorInput).prop('disabled', true);
2261
  jQuery('.b2s-post-item-details-release-input-weeks' + selectorInput).hide();
2262
  jQuery('.b2s-post-item-details-release-input-weeks' + selectorInput).prop('disabled', true);
2263
-
2264
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).hide();
2265
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).prop('disabled', true);
2266
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).val("0");
2267
-
2268
  //monthly- duration month
2269
  jQuery('.b2s-post-item-details-release-area-div-duration-month' + selectorInput).hide();
2270
  jQuery('.b2s-post-item-details-release-area-label-duration-month' + selectorInput).hide();
@@ -2283,7 +2142,6 @@ function releaseChoose(choose, dataNetworkAuthId, dataNetworkCount) {
2283
  jQuery('.b2s-post-item-details-release-area-label-select-timespan' + selectorInput).hide();
2284
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).hide();
2285
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).prop('disabled');
2286
-
2287
  jQuery('.b2s-post-item-details-release-input-days' + selectorInput).prop('disabled');
2288
  jQuery('.b2s-post-item-details-release-input-daySelect' + selectorInput).hide();
2289
  jQuery('.b2s-post-item-details-release-input-add' + selectorInput).hide();
@@ -2312,7 +2170,6 @@ function releaseChoose(choose, dataNetworkAuthId, dataNetworkCount) {
2312
  jQuery('.b2s-image-remove-btn' + selectorInput + '[data-network-count="-1"]').hide();
2313
  jQuery('.b2s-post-original-area' + selectorInput).removeClass('col-sm-7').removeClass('col-lg-9');
2314
  jQuery('.b2s-post-tool-area' + selectorInput).hide();
2315
-
2316
  //TOS Network Twitter
2317
  if (jQuery('.b2s-post-item-details-release-input-date-select' + selectorInput).attr('data-network-id') == "2") {
2318
  jQuery('.b2s-post-ship-item-copy-original-text' + selectorInput + '[data-network-count="0"]').trigger('click');
@@ -2324,7 +2181,6 @@ function releaseChoose(choose, dataNetworkAuthId, dataNetworkCount) {
2324
  jQuery('.b2s-post-item-details-release-input-date' + selectorInput).prop('disabled', true);
2325
  jQuery('.b2s-post-item-details-release-input-time' + selectorInput).hide();
2326
  jQuery('.b2s-post-item-details-release-input-time' + selectorInput).prop('disabled', true);
2327
-
2328
  for (var i = 0; i <= dataNetworkCount; i++) {
2329
  jQuery('.b2s-post-item-details-release-area-details-row[data-network-count="' + i + '"]' + selectorInput).show();
2330
  jQuery('.b2s-post-item-details-release-input-date[data-network-count="' + i + '"]' + selectorInput).show();
@@ -2337,7 +2193,6 @@ function releaseChoose(choose, dataNetworkAuthId, dataNetworkCount) {
2337
  }
2338
  jQuery('.b2s-post-item-details-release-input-weeks' + selectorInput).hide();
2339
  jQuery('.b2s-post-item-details-release-input-weeks' + selectorInput).prop('disabled');
2340
-
2341
  //monthly- duration month
2342
  jQuery('.b2s-post-item-details-release-area-div-duration-month' + selectorInput).hide();
2343
  jQuery('.b2s-post-item-details-release-area-label-duration-month' + selectorInput).hide();
@@ -2356,14 +2211,12 @@ function releaseChoose(choose, dataNetworkAuthId, dataNetworkCount) {
2356
  jQuery('.b2s-post-item-details-release-area-label-select-timespan' + selectorInput).hide();
2357
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).hide();
2358
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).prop('disabled');
2359
-
2360
  //new since v.4.5.0
2361
  jQuery('.b2s-post-item-details-release-area-label-duration' + selectorInput).hide();
2362
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).hide();
2363
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).prop('disabled', true);
2364
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).val("0");
2365
  jQuery('.b2s-post-item-details-release-input-daySelect' + selectorInput).hide();
2366
-
2367
  jQuery('.b2s-post-item-details-release-input-days' + selectorInput).prop('disabled', true);
2368
  jQuery('.b2s-post-item-details-release-input-add' + selectorInput).show();
2369
  jQuery('.b2s-post-item-details-release-area-details-ul' + selectorInput).show();
@@ -2403,17 +2256,14 @@ function releaseChoose(choose, dataNetworkAuthId, dataNetworkCount) {
2403
  jQuery('.b2s-post-item-details-release-area-details-ul' + selectorInput).show();
2404
  jQuery('.b2s-post-item-details-release-save-settings' + selectorInput).prop('disabled', false);
2405
  jQuery('.b2s-post-item-details-release-save-settings-label' + selectorInput).hide();
2406
-
2407
  for (var i = 0; i <= dataNetworkCount; i++) {
2408
  jQuery('.b2s-post-item-details-release-area-details-row[data-network-count="' + i + '"]' + selectorInput).show();
2409
  //new since v4.5.0
2410
  jQuery('.b2s-post-item-details-release-input-interval-select[data-network-count="' + i + '"]' + selectorInput).show();
2411
  jQuery('.b2s-post-item-details-release-input-interval-select[data-network-count="' + i + '"]' + selectorInput).removeAttr('disabled');
2412
-
2413
  jQuery('.b2s-post-item-details-release-input-date[data-network-count="' + i + '"]' + selectorInput).show();
2414
  jQuery('.b2s-post-item-details-release-input-date[data-network-count="' + i + '"]' + selectorInput).removeAttr('disabled');
2415
  jQuery('.b2s-post-item-details-release-input-daySelect[data-network-count="' + i + '"]' + selectorInput).show();
2416
-
2417
  jQuery('.b2s-post-item-details-release-input-time[data-network-count="' + i + '"]' + selectorInput).show();
2418
  jQuery('.b2s-post-item-details-release-input-time[data-network-count="' + i + '"]' + selectorInput).removeAttr('disabled');
2419
  jQuery('.b2s-post-item-details-release-input-weeks[data-network-count="' + i + '"]' + selectorInput).show();
@@ -2517,7 +2367,7 @@ function releaseChooseInterval(interval, selectorInput, dataCount) {
2517
  //duration times
2518
  jQuery('.b2s-post-item-details-release-area-div-duration-time[data-network-count="' + dataCount + '"]' + selectorInput).show();
2519
  jQuery('.b2s-post-item-details-release-area-label-duration-time[data-network-count="' + dataCount + '"]' + selectorInput).show();
2520
- jQuery('.b2s-post-item-details-release-input-times[data-network-count="' + dataCount + '"]' + selectorInput).show(); //select
2521
  jQuery('.b2s-post-item-details-release-input-times[data-network-count="' + dataCount + '"]' + selectorInput).removeAttr('disabled'); //select
2522
  //timespan
2523
  jQuery('.b2s-post-item-details-release-area-label-select-timespan[data-network-count="' + dataCount + '"]' + selectorInput).show();
@@ -2600,7 +2450,6 @@ function networkLimitAll(networkAuthId, networkId, limit) {
2600
  }
2601
  var newLen = limit - textLength;
2602
  jQuery(".b2s-post-item-countChar[data-network-count='" + networkCountId + "'][data-network-auth-id='" + networkAuthId + "']").html(newLen);
2603
-
2604
  }
2605
 
2606
  function networkCount(networkAuthId) {
@@ -2699,6 +2548,7 @@ function chooseMandant() {
2699
  jQuery('.b2s-post-item').hide();
2700
  jQuery('.b2s-post-item').find('.form-control').each(function () {
2701
  jQuery(this).attr("disabled", "disabled");
 
2702
  });
2703
  jQuery('.b2s-network-select-btn').children().removeClass('active').find('.b2s-network-status-img').addClass('b2s-network-hide');
2704
  //Check IS RE-PUBLISH
@@ -2793,7 +2643,6 @@ function checkSchedDateTime(dataNetworkAuthId) {
2793
  minParts3[0] = '0' + minParts3[0];
2794
  }
2795
  var dateParts = dateStr.split('-');
2796
-
2797
  //utc current time
2798
  var now = new Date();
2799
  //offset between utc und user
245
  var todayMonth = ("0" + (today.getMonth() + 1)).slice(-2);
246
  var todayDate = ("0" + today.getDate()).slice(-2);
247
  var dateToday = today.getFullYear() + "-" + todayMonth + "-" + todayDate;
 
248
  var lang = jQuery('#b2sUserLang').val();
249
  if (lang == "de") {
250
  dateTomorrow = tomorrowDate + "." + tomorrowMonth + "." + tomorrow.getFullYear();
255
  if (jQuery('.b2s-post-item[data-network-id="' + network_id + '"]').is(":visible")) {
256
  time.forEach(function (network_type_time, count) {
257
  if (network_type_time != "") {
258
+ jQuery('.b2s-post-item-details-release-input-date-select[data-network-id="' + network_id + '"][data-network-type="' + count + '"]').each(function () {
259
+ if (jQuery(this).is(':not(:disabled)')) {
260
+ var networkAuthId = jQuery(this).attr('data-network-auth-id');
261
+ jQuery('.b2s-post-item-details-release-input-date-select[data-network-id="' + network_id + '"][data-network-auth-id="' + networkAuthId + '"][data-network-type="' + count + '"]').val('1').trigger("change");
262
+ jQuery('.b2s-post-item-details-release-input-time[data-network-id="' + network_id + '"][data-network-auth-id="' + networkAuthId + '"][data-network-type="' + count + '"][data-network-count="0"]').val(network_type_time);
263
+ var hours = network_type_time.substring(0, 2);
264
+ if (lang == "de") {
265
+ var timeparts = network_type_time.split(' ');
266
+ if (timeparts[1] == 'AM') {
267
+ hours = (timeparts[1] == 'AM') ? hours : (parseInt(hours) + 12);
268
+ }
269
+ }
270
+ if (hours < today.getHours()) {
271
+ jQuery('.b2s-post-item-details-release-input-date[data-network-id="' + network_id + '"][data-network-auth-id="' + networkAuthId + '"][data-network-type="' + count + '"][data-network-count="0"]').val(dateTomorrow);
272
+ } else {
273
+ jQuery('.b2s-post-item-details-release-input-date[data-network-id="' + network_id + '"][data-network-auth-id="' + networkAuthId + '"][data-network-type="' + count + '"][data-network-count="0"]').val(dateToday);
274
+ }
275
  }
276
+ });
 
 
 
 
 
277
  count++;
278
  }
279
  });
284
  });
285
  return false;
286
  });
 
 
287
  jQuery(document).on('click', '.b2s-sidbar-network-auth-btn', function () {
288
  jQuery('#b2s-network-list-modal').modal('show');
289
  return false;
290
  });
 
291
  jQuery(document).on('click', '.change-meta-tag', function () {
292
  var attr = jQuery(this).attr('readonly');
293
  if (typeof attr !== typeof undefined && attr !== false) {
295
  var networkAuthId = jQuery(this).attr("data-network-auth-id");
296
  var postFormat = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + networkAuthId + ']').val();
297
  var networkId = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + networkAuthId + ']').attr("data-network-id");
 
298
  var isMetaChecked = false;
299
  if (networkId == "1" && jQuery('#isOgMetaChecked').val() == "1") {
300
  isMetaChecked = true;
322
  }
323
  return false;
324
  });
 
325
  // Linkpost change Meta Tags title + desc
326
  jQuery(document).on('keyup', '.change-meta-tag', function () {
327
  var currentText = jQuery(this).val();
341
  }
342
  return false;
343
  });
 
 
344
  jQuery(document).on('click', '.b2s-get-settings-sched-time-user', function () {
345
  jQuery('.b2s-server-connection-fail').hide();
346
  jQuery.ajax({
374
  var todayMonth = ("0" + (today.getMonth() + 1)).slice(-2);
375
  var todayDate = ("0" + today.getDate()).slice(-2);
376
  var dateToday = today.getFullYear() + "-" + todayMonth + "-" + todayDate;
 
377
  var lang = jQuery('#b2sUserLang').val();
378
  if (lang == "de") {
379
  dateTomorrow = tomorrowDate + "." + tomorrowMonth + "." + tomorrow.getFullYear();
384
  if (jQuery('.b2s-post-item[data-network-id="' + network_id + '"]').is(":visible")) {
385
  time.forEach(function (network_type_time, count) {
386
  if (network_type_time != "") {
387
+ jQuery('.b2s-post-item-details-release-input-date-select[data-network-id="' + network_id + '"][data-network-type="' + count + '"]').each(function () {
388
+ if (jQuery(this).is(':not(:disabled)')) {
389
+ var networkAuthId = jQuery(this).attr('data-network-auth-id');
390
+ jQuery('.b2s-post-item-details-release-input-date-select[data-network-id="' + network_id + '"][data-network-auth-id="' + networkAuthId + '"][data-network-type="' + count + '"]').val('1').trigger("change");
391
+ jQuery('.b2s-post-item-details-release-input-time[data-network-id="' + network_id + '"][data-network-auth-id="' + networkAuthId + '"][data-network-type="' + count + '"][data-network-count="0"]').val(network_type_time);
392
+ var hours = network_type_time.substring(0, 2);
393
+ if (lang == "de") {
394
+ var timeparts = network_type_time.split(' ');
395
+ if (timeparts[1] == 'AM') {
396
+ hours = (timeparts[1] == 'AM') ? hours : (parseInt(hours) + 12);
397
+ }
398
+ }
399
+ if (hours < today.getHours()) {
400
+ jQuery('.b2s-post-item-details-release-input-date[data-network-id="' + network_id + '"][data-network-auth-id="' + networkAuthId + '"][data-network-type="' + count + '"][data-network-count="0"]').val(dateTomorrow);
401
+ } else {
402
+ jQuery('.b2s-post-item-details-release-input-date[data-network-id="' + network_id + '"][data-network-auth-id="' + networkAuthId + '"][data-network-type="' + count + '"][data-network-count="0"]').val(dateToday);
403
+ }
404
  }
405
+ });
 
 
 
 
 
 
406
  count++;
407
  }
408
  });
415
  });
416
  return false;
417
  });
 
418
  jQuery('#b2sPreFeatureModal').on('show.bs.modal', function () {
419
  jQuery('.b2s-post-item-details-release-input-date-select-reset').val('0');
420
  });
 
421
  jQuery(document).on('click', '.b2s-network-list-add-btn-profeature', function () {
422
  jQuery('#b2s-network-list-modal').modal('hide');
423
  });
 
424
  jQuery(document).on('click', '.b2s-post-item-details-release-area-sched-for-all', function () {
425
  var dataNetworkAuthId = jQuery(this).attr('data-network-auth-id');
426
  var dataNetworkCount = 0;
427
  var selMode = jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + dataNetworkAuthId + '"]').val();
 
428
  if (jQuery('.b2s-post-item-details-release-area-details-row[data-network-auth-id="' + dataNetworkAuthId + '"][data-network-count="1"]').is(":visible")) {
429
  dataNetworkCount = 1;
430
  }
446
  }
447
  }
448
  });
 
449
  //set values
450
  for (var i = 0; i <= dataNetworkCount; i++) {
451
  jQuery('.b2s-post-item-details-release-input-time[data-network-count="' + i + '"]').val(jQuery('.b2s-post-item-details-release-input-time[data-network-count="' + i + '"][data-network-auth-id="' + dataNetworkAuthId + '"]').val());
452
  jQuery('.b2s-post-item-details-release-input-date[data-network-count="' + i + '"]').val(jQuery('.b2s-post-item-details-release-input-date[data-network-count="' + i + '"][data-network-auth-id="' + dataNetworkAuthId + '"]').val());
453
  if (selMode == 2) {
454
  var curInterval = jQuery('.b2s-post-item-details-release-input-interval-select[data-network-count="' + i + '"][data-network-auth-id="' + dataNetworkAuthId + '"]').val();
 
455
  jQuery('.b2s-post-item-details-release-input-interval-select[data-network-count="' + i + '"]').val(curInterval);
 
456
  if (curInterval == 0) {
457
  jQuery('.b2s-post-item-details-release-input-weeks[data-network-count="' + i + '"]').val(jQuery('.b2s-post-item-details-release-input-weeks[data-network-count="' + i + '"][data-network-auth-id="' + dataNetworkAuthId + '"]').val());
458
  jQuery('.b2s-post-item-details-release-input-lable-day-mo[data-network-count="' + i + '"]').prop('checked', jQuery('.b2s-post-item-details-release-input-lable-day-mo[data-network-count="' + i + '"][data-network-auth-id="' + dataNetworkAuthId + '"').prop('checked'));
486
 
487
  return false;
488
  });
 
 
489
  jQuery(document).on("click", ".b2s-user-network-settings-post-format", function () {
490
  jQuery('.b2s-settings-user-success').hide();
491
  jQuery('.b2s-settings-user-error').hide();
492
  jQuery('.b2s-server-connection-fail').hide();
 
493
  var networkId = jQuery(this).attr("data-network-id");
494
  var networkType = jQuery(this).attr("data-network-type");
495
  var postFormat = jQuery(this).val();
496
  var networkAuthId = jQuery(this).attr("data-network-auth-id");
497
  var postFormatType = jQuery(this).attr("data-post-format-type");
 
498
  jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').val(postFormat);
499
  //PostFormat
500
  if (jQuery('.b2s-post-ship-item-post-format-text[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').length > 0) {
531
  if (jQuery(this).val() == "0" && jQuery('.b2s-post-ship-item-post-format[data-network-auth-id=' + jQuery(this).attr('data-network-auth-id') + ']').is(":visible") && jQuery(this).attr('data-network-auth-id') != networkAuthId) { //other Linkpost by same network
532
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
533
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
 
534
  jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + networkAuthId + '"]').attr('src', jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').attr('src'));
535
  jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
 
536
  if (jQuery('.b2s-image-remove-btn[data-network-count="-1"][data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]:visible').length == 1) {
537
  jQuery('.b2s-image-remove-btn[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="-1"]').show();
538
  } else {
544
  });
545
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').show();
546
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').trigger("click");
 
 
547
  } else {
548
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
549
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
555
  jQuery('#b2s-post-ship-item-post-format-modal').modal('hide');
556
  return false;
557
  });
 
558
  jQuery(document).on("click", ".b2s-post-ship-item-full-text", function () {
559
  jQuery('.b2s-server-connection-fail').hide();
560
  var curSchedCount = jQuery(this).attr('data-network-count');
 
561
  jQuery.ajax({
562
  url: ajaxurl,
563
  type: "POST",
582
  });
583
  return false;
584
  });
 
585
  jQuery(document).on("click", ".b2s-post-ship-item-message-delete", function () {
586
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
587
  var networkCountId = jQuery(this).attr('data-network-count');
588
  jQuery('.b2s-post-item-details-item-message-input[data-network-count="' + networkCountId + '"][data-network-auth-id="' + networkAuthId + '"').val("");
 
589
  initSceditor(networkAuthId);
 
590
  networkCount(networkAuthId);
591
  return false;
592
  });
 
593
  jQuery(document).on("click", ".b2s-post-ship-item-copy-original-text", function () {
594
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
595
  var networkCountId = jQuery(this).attr('data-network-count');
597
  networkCount(networkAuthId);
598
  return false;
599
  });
 
 
600
  jQuery(document).on("click", ".b2s-network-select-btn", function () {
601
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
602
  var networkId = jQuery(this).attr('data-network-id');
626
  if (isMetaChecked && jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + networkType + '"][data-network-id="' + networkId + '"]').val() == "0" && jQuery('#user_version').val() > 0) {
627
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", false);
628
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", false);
 
629
  var dataMetaType = jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').attr("data-meta-type");
630
  if (dataMetaType == "og") {
631
  jQuery('#b2sChangeOgMeta').val("1");
638
  if (jQuery(this).val() == "0" && jQuery('.b2s-post-ship-item-post-format[data-network-auth-id=' + jQuery(this).attr('data-network-auth-id') + ']').is(":visible") && jQuery(this).attr('data-network-auth-id') != networkAuthId) { //other Linkpost by same network
639
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
640
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
 
641
  jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + networkAuthId + '"]').attr('src', jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').attr('src'));
642
  jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + networkAuthId + '"]').val(jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
 
643
  if (jQuery('.b2s-image-remove-btn[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').is(":visible")) {
644
  jQuery('.b2s-image-remove-btn[data-network-auth-id="' + networkAuthId + '"]').show();
645
  if (jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val() == 1) {
652
  return true;
653
  }
654
  });
 
655
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').show();
656
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').trigger("click");
 
657
  } else {
658
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
659
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + networkAuthId + '"]').prop("readonly", true);
729
  if (data != undefined) {
730
  jQuery('.b2s-network-status-img-loading[data-network-auth-id="' + data.networkAuthId + '"]').hide();
731
  jQuery('.b2s-network-select-btn[data-network-auth-id="' + data.networkAuthId + '"]').removeClass('b2s-network-select-btn-deactivate');
 
732
  if (data.result == true) {
733
  jQuery('.b2s-post-item-loading-dummy[data-network-auth-id="' + data.networkAuthId + '"]').remove();
734
  var order = jQuery.parseJSON(jQuery('.b2s-network-navbar-order').val());
746
  }
747
 
748
  activatePortal(data.networkAuthId);
 
749
  var dateFormat = "yyyy-mm-dd";
750
  var language = "en";
751
  var showMeridian = true;
776
  defaultTime: 'current',
777
  snapToStep: true
778
  });
 
 
779
  jQuery(".b2s-post-item-details-release-input-date").datepicker().on('changeDate', function (e) {
780
  checkSchedDateTime(jQuery(this).attr('data-network-auth-id'));
781
  });
782
  jQuery('.b2s-post-item-details-release-input-time').timepicker().on('changeTime.timepicker', function (e) {
783
  checkSchedDateTime(jQuery(this).attr('data-network-auth-id'));
 
784
  });
 
785
  //Check Text Limit
786
  var textLimit = jQuery('.b2s-post-item-details-item-message-input[data-network-count="-1"][data-network-auth-id="' + data.networkAuthId + '"]').attr('data-network-text-limit');
787
  if (textLimit != "0") {
802
 
803
  //Time zone
804
  jQuery('.b2s-settings-time-zone-text').html(jQuery('#user_timezone_text').val());
 
805
  //PostFormat
806
  if (jQuery('.b2s-post-ship-item-post-format-text[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').length > 0) {
807
  var postFormatText = JSON.parse(jQuery('.b2sNetworkSettingsPostFormatText').val());
810
 
811
  jQuery('.b2s-post-ship-item-post-format-text[data-network-auth-id="' + data.networkAuthId + '"]').html(postFormatText[postFormatType][jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').val()]);
812
  jQuery('.b2s-post-item-details-post-format[data-network-auth-id="' + data.networkAuthId + '"]').val(jQuery('.b2sNetworkSettingsPostFormatCurrent[data-network-type="' + data.networkType + '"][data-network-id="' + data.networkId + '"]').val());
 
813
  var isMetaChecked = false;
814
  if (data.networkId == "1" && jQuery('#isOgMetaChecked').val() == "1") {
815
  isMetaChecked = true;
833
  if (jQuery(this).val() == "0" && jQuery('.b2s-post-ship-item-post-format[data-network-auth-id=' + jQuery(this).attr('data-network-auth-id') + ']').is(":visible") && jQuery(this).attr('data-network-auth-id') != data.networkAuthId) { //other Linkpost by same network
834
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + data.networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
835
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + data.networkAuthId + '"]').val(jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
 
836
  jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + data.networkAuthId + '"]').attr('src', jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').attr('src'));
837
  jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + data.networkAuthId + '"]').val(jQuery('.b2s-image-url-hidden-field[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val());
 
838
  if (jQuery('.b2s-image-remove-btn[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').is(":visible")) {
839
  jQuery('.b2s-image-remove-btn[data-network-auth-id="' + data.networkAuthId + '"]').show();
840
  } else {
846
  });
847
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').show();
848
  jQuery('.b2s-post-item-details-preview-url-reload[data-network-auth-id="' + networkAuthId + '"]').trigger("click");
 
849
  } else {
850
  jQuery('.b2s-post-item-details-preview-title[data-network-auth-id="' + data.networkAuthId + '"]').prop("readonly", true);
851
  jQuery('.b2s-post-item-details-preview-desc[data-network-auth-id="' + data.networkAuthId + '"]').prop("readonly", true);
887
  }
888
  return false;
889
  });
 
890
  jQuery(document).on('click', '.b2s-post-item-details-url-image', function () {
891
  var networkAuthId = jQuery(this).attr("data-network-auth-id");
892
  var networkCountId = jQuery(this).attr("data-network-count");
894
 
895
  var postFormat = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + networkAuthId + ']').val();
896
  var networkId = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + networkAuthId + ']').attr("data-network-id");
 
897
  var isMetaChecked = false;
898
  if (networkId == "1" && jQuery('#isOgMetaChecked').val() == "1") {
899
  isMetaChecked = true;
919
  }
920
  return false;
921
  });
 
922
  jQuery(document).on('click', '.b2s-submit-btn-scroll', function () {
923
  jQuery('.b2s-submit-btn').trigger('click');
924
  });
 
925
  jQuery(document).on('click', '.b2s-post-ship-item-post-format', function () {
926
  if (jQuery('#user_version').val() >= 1) {
927
  jQuery('.b2s-user-network-settings-post-format-area').hide();
931
  jQuery('.b2s-user-network-settings-post-format[data-network-type="' + jQuery(this).attr('data-network-type') + '"][data-network-id="' + jQuery(this).attr('data-network-id') + '"]').removeClass('b2s-settings-checked');
932
  var currentPostFormat = jQuery('.b2s-post-item-details-post-format[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').val();
933
  jQuery('.b2s-user-network-settings-post-format[data-network-type="' + jQuery(this).attr('data-network-type') + '"][data-network-id="' + jQuery(this).attr('data-network-id') + '"][data-post-format="' + currentPostFormat + '"]').addClass('b2s-settings-checked');
 
934
  jQuery('#b2s-post-ship-item-post-format-network-display-name').html(jQuery('.b2s-post-item-details-network-display-name[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').text().toUpperCase());
935
  }
936
  jQuery('.b2s-post-format-settings-info').hide();
942
  }
943
  return false;
944
  });
 
945
  jQuery(document).on('click', '.b2s-btn-trigger-post-ship-item-post-format', function () {
946
  jQuery('.b2s-post-ship-item-post-format[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').trigger('click');
947
  return false;
948
  });
 
949
  jQuery(document).on('click', '.b2s-post-item-details-release-input-days', function () {
950
  jQuery('.b2s-post-item-details-release-input-days[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').removeClass('error');
951
  });
 
952
  jQuery(document).on('change', '.b2s-post-item-details-release-input-time', function () {
953
  jQuery('.b2s-post-item-details-release-input-time[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').removeClass('error');
954
  });
 
955
  jQuery(document).on('change', '.b2s-post-item-details-release-input-date', function () {
956
  jQuery('.b2s-post-item-details-release-input-date[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"]').removeClass('error');
957
  });
959
  hideDuplicateAuths();
960
  chooseMandant();
961
  });
 
962
  jQuery(document).on('change', '.b2s-post-item-details-item-group-select', function () {
963
  if (jQuery(this).attr('data-change-network-display-name') == 'true') {
964
  var label = jQuery(this.options[this.selectedIndex]).closest('optgroup').prop('label');
967
  }
968
  return false;
969
  });
 
 
970
  //select recurrent sched interval mode
971
  jQuery(document).on('change', '.b2s-post-item-details-release-input-interval-select', function () {
972
  var interval = jQuery(this).val();
975
  releaseChooseInterval(interval, selectorInput, dataCount);
976
  return false;
977
  });
 
 
978
  //select shipping mode
979
  jQuery(document).on('change', '.b2s-post-item-details-release-input-date-select', function () {
980
  var dataNetworkCount = 0;
1028
  }
1029
 
1030
  checkSchedDateTime(jQuery(this).attr('data-network-auth-id'));
 
1031
  if (dataNetworkCount == 2) {
1032
  jQuery('.b2s-post-item-details-release-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="0"]').hide();
1033
  jQuery('.b2s-post-item-details-release-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="1"]').hide();
1041
  }
1042
  releaseChoose(jQuery(this).val(), jQuery(this).attr('data-network-auth-id'), dataNetworkCount);
1043
  });
 
 
1044
  jQuery(document).on('click', '#b2s-network-sched-post-info-ignore', function () {
1045
  jQuery('#b2sSchedPostInfoIgnore').val("1");
1046
  jQuery('.b2s-submit-btn').trigger("click");
1047
  return false;
1048
  });
 
 
1049
  jQuery(document).on('click', '.b2s-re-share-btn', function () {
1050
  jQuery(".b2s-settings-user-sched-time-area").show();
1051
  jQuery('#b2s-sidebar-wrapper').show();
1060
  window.scrollTo(0, 0);
1061
  jQuery('.b2s-reporting-btn-area').hide();
1062
  jQuery('#b2sSchedPostInfoIgnore').val("0");
 
1063
  //Calendar close for resfresh
1064
  jQuery('.b2s-toogle-calendar-btn').each(function () {
1065
  if (!jQuery(this).hasClass('hide')) {
1072
  calendar.removeClass('show');
1073
  calendar.addClass('hide');
1074
  jQuery('.b2s-calendar-filter-area[data-network-auth-id="' + networkAuthId + '"]').addClass('hide');
 
1075
  }
1076
  });
 
 
1077
  return false;
1078
  });
 
 
1079
  jQuery(document).on('click', '.b2s-post-item-details-release-input-add', function () {
1080
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
1081
  var netCount = jQuery(this).attr('data-network-count');
1082
  var netCountNext = parseInt(netCount) + 1;
1083
  var curMode = jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + networkAuthId + '"]').val();
1084
  jQuery(this).hide();
 
1085
  jQuery('.b2s-post-item-details-release-input-hide[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCount + '"]').hide();
1086
  jQuery('.b2s-post-item-details-release-input-hide[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').show();
1087
  jQuery('.b2s-post-item-details-release-area-details-row[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').show();
1089
  jQuery('.b2s-post-item-details-release-input-date[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').removeAttr('disabled');
1090
  jQuery('.b2s-post-item-details-release-input-time[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').show();
1091
  jQuery('.b2s-post-item-details-release-input-time[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').removeAttr('disabled');
 
1092
  if (curMode == 1) {
1093
  //since 4.9.0 custom content
1094
  jQuery('.b2s-post-item-details-release-customize-sched-area-details-row[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountNext + '"]').show();
1112
 
1113
  return false;
1114
  });
 
1115
  jQuery(document).on('click', '.b2s-post-item-details-release-input-hide', function () {
1116
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
1117
  var netCount = jQuery(this).attr('data-network-count');
1120
  jQuery('.b2s-post-item-details-release-area-details-row' + selectorInput).hide();
1121
  jQuery('.b2s-post-item-details-release-input-hide[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountBevor + '"]').show();
1122
  jQuery('.b2s-post-item-details-release-input-add[data-network-auth-id="' + networkAuthId + '"][data-network-count="' + netCountBevor + '"]').show();
 
1123
  //clean all fields
1124
  jQuery('.b2s-post-item-details-release-input-date' + selectorInput).prop('disabled', true);
1125
  jQuery('.b2s-post-item-details-release-input-time' + selectorInput).prop('disabled', true);
1127
  jQuery('.b2s-post-item-details-release-input-weeks' + selectorInput).prop('disabled', true);
1128
  jQuery('.b2s-post-item-details-release-input-days' + selectorInput).prop('checked', false);
1129
  jQuery('.b2s-post-item-details-release-input-days' + selectorInput).prop('disabled', true);
 
1130
  //since 4.9.0 custom content
1131
  jQuery('.b2s-post-item-details-item-message-input' + selectorInput).prop('disabled', true);
1132
  jQuery('.b2s-post-item-details-item-message-input' + selectorInput).removeClass('error');
1133
  jQuery('.b2s-post-item-details-release-customize-sched-area-details-row' + selectorInput).hide();
 
1134
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).prop('disabled', true);
1135
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).val("0");
1136
  jQuery('.b2s-post-item-details-release-area-label-duration-month' + selectorInput).hide();
1147
  jQuery('.b2s-post-item-details-release-area-label-select-timespan' + selectorInput).hide();
1148
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).prop('disabled', true);
1149
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).val("1");
 
1150
  return false;
1151
  });
 
1152
  jQuery(document).on("keyup", ".complete_network_url", function () {
1153
  var url = jQuery(this).val();
1154
  jQuery(this).removeClass("error");
1162
  jQuery(this).val(url);
1163
  }
1164
  });
 
1165
  jQuery(document).on('click', '.scroll-to-top', function () {
1166
  window.scrollTo(0, 0);
1167
  return false;
1168
  });
 
1169
  jQuery(document).on('click', '.scroll-to-bottom', function () {
1170
  window.scrollTo(0, document.body.scrollHeight);
1171
  return false;
1172
  });
 
1173
  jQuery(document).on('click', '.b2s-post-item-details-preview-url-reload', function () {
1174
  var re = new RegExp(/^(https?:\/\/)?[a-zA-Z0-99ÄÖÜöäü-]+([\-\.]{1}[a-zA-Z0-99ÄÖÜöäü-]+)*\.[a-zA-Z0-9-]{2,20}(:[0-9]{1,5})?(\/.*)?$/);
1175
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
1225
  jQuery('.b2s-post-item-details-item-url-input[data-network-auth-id="' + networkAuthId + '"]').addClass('error');
1226
  }
1227
  });
 
1228
  jQuery(document).on('click', '.b2s-select-image-modal-open', function () {
1229
  var metaType = jQuery(this).attr('data-meta-type');
1230
  var authId = jQuery(this).attr('data-network-auth-id');
1231
  var countId = jQuery(this).attr('data-network-count');
 
1232
  var postFormat = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + authId + ']').val();
1233
  var networkId = jQuery('.b2s-post-item-details-post-format[data-network-auth-id=' + authId + ']').attr("data-network-id");
 
1234
  var isMetaChecked = false;
1235
  if (networkId == "1" && jQuery('#isOgMetaChecked').val() == "1") {
1236
  isMetaChecked = true;
1258
  var content = "<img class='b2s-post-item-network-image-selected-account' height='22px' src='" + jQuery('.b2s-post-item-network-image[data-network-auth-id="' + authId + '"]').attr('src') + "' /> " + jQuery('.b2s-post-item-details-network-display-name[data-network-auth-id="' + authId + '"]').html();
1259
  jQuery('.b2s-selected-network-for-image-info').html(content);
1260
  jQuery('#b2sInsertImageType').val("0");
 
1261
  if (typeof metaType !== 'undefined') {
1262
  jQuery('.b2s-image-change-this-network').attr('data-meta-type', metaType);
1263
  } else {
1268
  imageSize();
1269
  return false;
1270
  });
 
1271
  jQuery(document).on('click', '.b2s-image-remove-btn', function () {
1272
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
1273
  var networkCountId = jQuery(this).attr('data-network-count');
1274
  var defaultImage = jQuery('#b2sDefaultNoImage').val();
 
1275
  //default
1276
  if (networkCountId == -1) {
1277
  jQuery('.b2s-post-item-details-url-image[data-network-auth-id="' + networkAuthId + '"]').attr('src', defaultImage);
1306
 
1307
  return false;
1308
  });
 
1309
  jQuery(document).on('click', '.b2s-image-change-this-network', function () {
1310
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
1311
  var networkCountId = jQuery(this).attr('data-network-count');
1368
  jQuery('.b2s-upload-image-no-permission').hide();
1369
  jQuery('.b2s-upload-image-free-version-info').hide();
1370
  jQuery('#b2s-network-select-image').modal('hide');
 
1371
  return false;
1372
  });
 
 
1373
  jQuery(document).on('change', '.b2s-post-item-details-relay', function () {
1374
  if (jQuery(this).attr('data-user-version') == 0) {
1375
  jQuery(this).prop("checked", false);
1389
  jQuery('.b2s-post-item-details-relay-input-account[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="0"]').removeAttr('disabled');
1390
  jQuery('.b2s-post-item-details-relay-input-delay[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="0"]').removeAttr('disabled');
1391
  jQuery('.b2s-post-item-details-relay-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="0"]').show();
 
1392
  //Relay Html Data
1393
  if (jQuery('.b2s-post-item-details-relay-input-account[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="0"]').has('option').length == 0) {
1394
  var optionData = window.atob(jQuery('#b2sRelayAccountData').val());
1412
  }
1413
  return false;
1414
  });
 
 
1415
  jQuery(document).on('click', '.b2s-post-item-details-relay-input-add', function () {
1416
  var netCount = jQuery(this).attr('data-network-count');
1417
  var netCountNext = parseInt(netCount) + 1;
1425
  jQuery('.b2s-post-item-details-relay-input-delay[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCountNext + '"]').removeAttr('disabled');
1426
  jQuery('.b2s-post-item-details-relay-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCountNext + '"]').show();
1427
  jQuery('.b2s-post-item-details-relay-input-hide[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCountNext + '"]').show();
 
1428
  //Relay Html Data
1429
  if (jQuery('.b2s-post-item-details-relay-input-account[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCountNext + '"]').has('option').length == 0) {
1430
  var optionData = window.atob(jQuery('#b2sRelayAccountData').val());
1433
 
1434
  return false;
1435
  });
 
1436
  jQuery(document).on('click', '.b2s-post-item-details-relay-input-hide', function () {
1437
  var netCount = jQuery(this).attr('data-network-count');
1438
  jQuery('.b2s-post-item-relay-area-details-row[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCount + '"]').hide();
1444
  jQuery('.b2s-post-item-details-relay-input-delay[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCount + '"]').prop('disabled', true);
1445
  jQuery('.b2s-post-item-details-relay-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCount + '"]').hide()
1446
  jQuery('.b2s-post-item-details-relay-input-hide[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + netCount + '"]').hide();
 
1447
  if (netCount >= 1) {
1448
  var before = netCount - 1;
1449
  jQuery('.b2s-post-item-details-relay-input-add[data-network-auth-id="' + jQuery(this).attr('data-network-auth-id') + '"][data-network-count="' + before + '"]').show();
1451
 
1452
  return false;
1453
  });
 
 
1454
  jQuery(document).on('click', '.b2s-image-change-all-network', function () {
1455
  jQuery('.b2s-post-item-details-item-message-input-allow-html').each(function () {
1456
  var sce = jQuery(this).sceditor('instance');
1466
  jQuery('#b2s_blog_default_image').val(jQuery('input[name=image_url]:checked').val());
1467
  jQuery('.b2s-post-item-details-url-image').removeClass('b2s-img-required');
1468
  jQuery('.b2s-image-url-hidden-field').val(jQuery('input[name=image_url]:checked').val());
 
1469
  jQuery('.b2s-image-remove-btn').show();
1470
  var networkCountId = jQuery(this).attr('data-network-count');
1471
  if (networkCountId >= 0) {
1475
  jQuery('.b2s-upload-image-invalid-extension').hide();
1476
  jQuery('.b2s-upload-image-no-permission').hide();
1477
  jQuery('.b2s-upload-image-free-version-info').hide();
 
1478
  jQuery('.b2sChangeOgMeta').val("1");
1479
  jQuery('.b2sChangeCardMeta').val("1");
 
1480
  jQuery('#b2s-network-select-image').modal('hide');
1481
  return false;
1482
  });
 
1483
  jQuery(document).on('click', '.b2s-upload-image', function () {
1484
  if (typeof wp !== 'undefined' && wp.media && wp.media.editor) {
1485
  jQuery('#b2s-network-select-image').modal('hide');
 
1486
  wpMedia = wp.media({
1487
  title: jQuery('#b2s_wp_media_headline').val(),
1488
  button: {
1492
  library: {type: 'image'}
1493
  });
1494
  wpMedia.open();
 
1495
  wpMedia.on('select', function () {
1496
  var validExtensions = ['jpg', 'jpeg', 'png'];
1497
  var attachment = wpMedia.state().get('selection').first().toJSON();
1520
  '<input type="radio" value="' + attachment.url + '" class="checkNetworkImage" name="image_url" id="b2s-image-count-' + count + '">' +
1521
  '</div>' +
1522
  '</div>';
 
1523
  jQuery('.b2s-image-choose-area').html(jQuery('.b2s-image-choose-area').html() + content);
 
1524
  jQuery('.b2s-image-change-btn-area').show();
1525
  jQuery('.b2s-choose-image-no-image-info-text').hide();
1526
  jQuery('.b2s-choose-image-no-image-extra-btn').hide();
1528
  jQuery('input[name=image_url]:last').prop("checked", true);
1529
  jQuery('#b2s-network-select-image').modal('show');
1530
  imageSize();
 
1531
  });
1532
  } else {
1533
  jQuery('.b2s-upload-image-no-permission').show();
1534
  }
1535
  return false;
1536
  });
 
1537
  jQuery(document).on('click', '.b2s-upload-image-free-version', function () {
1538
  jQuery('.b2s-upload-image-free-version-info').show();
1539
  });
 
 
1540
  jQuery("#b2sNetworkSent").keypress(function (e) {
1541
  if (e.keyCode == 13 && e.target.tagName == "INPUT")
1542
  return false;
1543
  });
 
1544
  jQuery.validator.addMethod("checkUrl", function (value, element, regexp) {
1545
  var re = new RegExp(regexp);
1546
  return this.optional(element) || re.test(value);
1547
  }, "Invalid Url");
 
1548
  jQuery.validator.addClassRules("b2s-post-item-details-item-url-input", {
1549
  checkUrl: /^(https?:\/\/)?[a-zA-Z0-99ÄÖÜöäü-]+([\-\.]{1}[a-zA-Z0-99ÄÖÜöäü-]+)*\.[a-zA-Z0-9-]{2,20}(:[0-9]{1,5})?(\/.*)?$/
1550
  });
 
1551
  //Twitter TOS 032018 - protected multiple accounts with same content to same time
1552
  jQuery.validator.addMethod("unique", function (value, element, params) {
1553
  var curNetworkAuthId = jQuery(element).attr('data-network-auth-id');
1554
  var prefix = params;
1555
  var selector = jQuery.validator.format("[name!='{0}'][unique='{1}']", element.name, prefix);
1556
  var matches = new Array();
 
1557
  //TOS Network Twitter 032018
1558
  jQuery('.b2s-unique-content').hide();
1559
  jQuery('.tw-textarea-input').removeClass('error');
 
1560
  jQuery(selector).each(function (index, item) {
1561
  //none disabled elements || ignore default content if curSchedMode=1
1562
+ if (!jQuery(item).is(':not(:disabled)') || !jQuery(item).is(':visible') || !jQuery('.b2s-post-item[data-network-auth-id="' + jQuery(item).attr('data-network-auth-id') + '"]').is(':visible') || (jQuery(item).attr('data-network-count') == -1 && jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + jQuery(item).attr('data-network-auth-id') + '"] option[value="1"]:selected').length > 0)) {
1563
  return true;
1564
  }
1565
  if (jQuery.trim(value) == jQuery.trim(jQuery(item).val())) {
1568
  matches.push(item);
1569
  }
1570
  });
 
1571
  if (matches.length != 0) {
1572
  jQuery('.b2s-unique-content[data-network-auth-id="' + curNetworkAuthId + '"]').show();
1573
  }
1574
  return matches.length == 0;
1575
  });
 
1576
  jQuery.validator.classRuleSettings.unique = {
1577
  unique: true
1578
  };
 
1579
  jQuery.validator.addMethod("checkTags", function (value, element, test) {
1580
  var allowed_tags = ['p', 'h1', 'h2', 'br', 'i', 'b', 'a', 'img'];
 
1581
  var tags = value.match(/(<([^>]+)>)/ig);
1582
  if (tags !== null && tags.length > 0) {
1583
  if (jQuery(element).hasClass('b2s-post-item-details-item-message-input-allow-html')) {
1599
  }
1600
  return true;
1601
  });
 
1602
  jQuery.validator.addClassRules('b2s-post-item-details-item-message-input', {'checkTags': true});
 
1603
  jQuery.validator.addClassRules('b2s-post-item-details-release-input-date-select', {'checkSched': true});
 
1604
  jQuery.validator.addClassRules('b2s-post-item-details-item-title-input', {required: true});
 
 
1605
  jQuery.validator.addMethod('checkSched', function (value, element, rest) {
1606
  if (jQuery(element).is(':not(:disabled)') && jQuery(element).val() != 0) {
1607
  var networkAuthId = jQuery(element).attr('data-network-auth-id');
1645
  }
1646
  return true;
1647
  });
 
1648
  jQuery("#b2sNetworkSent").validate({
1649
  ignore: "",
1650
  errorPlacement: function () {
1703
  return false;
1704
  }
1705
  });
 
1706
  jQuery('#b2s-network-list-modal').on('show.bs.modal', function (e) {
1707
  jQuery('.b2s-network-list-modal-mandant').html(jQuery(".b2s-network-details-mandant-select option:selected").text());
1708
  });
 
1709
  jQuery(window).on("load", function () {
1710
  var showMeridian = true;
1711
  if (jQuery('#b2sUserLang').val() == 'de') {
1719
  defaultTime: 'current'
1720
  });
1721
  });
 
 
1722
  jQuery('#b2s-save-time-settings-btn-trigger').on('click', function () {
1723
  jQuery('#b2s-save-time-settings-btn').trigger('click');
1724
  });
 
1725
  jQuery('#b2sSaveUserSettingsSchedTime').validate({
1726
  ignore: "",
1727
  errorPlacement: function () {
1754
  return false;
1755
  }
1756
  });
 
1757
  jQuery(document).on('click', '.b2s-loading-area-save-profile-change', function () {
1758
  var selectedAuth = new Array();
1759
  jQuery('.b2s-network-list.active').each(function () {
1779
  jQuery('.b2s-ship-settings-save').show();
1780
  window.scrollTo(0, 0);
1781
  var mandantId = jQuery('.b2s-network-details-mandant-select').val();
 
1782
  jQuery('.b2s-network-list').each(function () {
1783
  var jsonMandantIds = jQuery(this).parents('.b2s-sidbar-wrapper-nav-li').attr('data-mandant-id');
1784
  if (jsonMandantIds !== undefined) {
1792
  }
1793
  });
1794
  jQuery(this).parents('.b2s-sidbar-wrapper-nav-li').attr('data-mandant-id', JSON.stringify(newMandant));
 
1795
  } else if (jsonMandantIds.indexOf(mandantId) == -1 && jQuery(this).hasClass('active')) {
1796
  //add
1797
  jsonMandantIds.push(mandantId);
1803
  }
1804
  });
1805
  });
 
1806
  window.addEventListener('message', function (e) {
1807
  if (e.origin == jQuery('#b2sServerUrl').val()) {
1808
  var data = JSON.parse(e.data);
1809
  loginSuccess(data.networkId, data.networkType, data.displayName, data.networkAuthId, data.mandandId);
1810
  }
1811
  });
 
1812
  jQuery.xhrPool.abortAll = function () { // our abort function
1813
  jQuery(this).each(function (idx, jqXHR) {
1814
  jqXHR.abort();
1815
  });
1816
  jQuery.xhrPool.length = 0
1817
  };
 
1818
  function loadingDummyShow(networkAuthId, networkId) {
1819
  jQuery('.b2s-post-item-connection-fail-dummy[data-network-auth-id="' + networkAuthId + '"]').remove();
1820
  var html = '<div class="b2s-post-item b2s-post-item-loading-dummy" data-network-auth-id="' + networkAuthId + '">'
1868
  + '</div>'
1869
  + '</div>'
1870
  + '</div>';
 
1871
  jQuery('.b2s-post-item-loading-dummy[data-network-auth-id="' + networkAuthId + '"]').replaceWith(html);
1872
  }
1873
 
1919
 
1920
  function initSceditor(networkAuthId) {
1921
  var sceditor = jQuery('.b2s-post-item-details-item-message-input-allow-html[data-network-auth-id="' + networkAuthId + '"]').sceditor('instance');
 
1922
  if (typeof sceditor !== 'undefined' && typeof sceditor.destroy == 'function') {
1923
  sceditor.destroy();
1924
  }
1929
  autoUpdate: true,
1930
  emoticonsEnabled: false
1931
  });
 
1932
  var sceditor = jQuery('.b2s-post-item-details-item-message-input-allow-html[data-network-auth-id="' + networkAuthId + '"]').sceditor('instance');
 
1933
  if (typeof sceditor !== 'undefined' && typeof sceditor.destroy == 'function') {
1934
  sceditor.keyUp(function () {
1935
  jQuery(this).parents('.b2s-post-item-details').find('.b2s-post-item-countChar').html(jQuery(this).prev('.b2s-post-item-details-item-message-input').sceditor('instance').getBody().text().length);
1959
  var width = this.naturalWidth;
1960
  var height = this.naturalHeight;
1961
  jQuery(this).parents('.b2s-image-item').find('.b2s-image-item-caption-resolution').html(width + 'x' + height);
 
1962
  if (width == 0)
1963
  {
1964
  setTimeout(function () {
2020
  }
2021
  }
2022
  });
 
2023
  //Customize Content
2024
  if (jQuery('.b2s-post-item-details-release-input-date-select[data-network-auth-id="' + networkAuthId + '"]').val() == 1) {
2025
  jQuery('.b2s-image-remove-btn[data-network-auth-id="' + networkAuthId + '"][data-network-count="-1"]').hide();
2093
  }
2094
  }
2095
  });
 
2096
  return result;
2097
  }
2098
 
2116
  jQuery('.b2s-post-item-details-release-input-date' + selectorInput).prop('disabled', true);
2117
  jQuery('.b2s-post-item-details-release-customize-sched-area-details-row' + selectorInput).hide();
2118
  jQuery('.b2s-post-item-sched-customize-text' + selectorInput).prop('disabled', true);
 
2119
  jQuery('.b2s-post-item-details-release-input-date' + selectorInput).hide();
2120
  jQuery('.b2s-post-item-details-release-input-time' + selectorInput).hide();
2121
  jQuery('.b2s-post-item-details-release-input-time' + selectorInput).prop('disabled', true);
2122
  jQuery('.b2s-post-item-details-release-input-weeks' + selectorInput).hide();
2123
  jQuery('.b2s-post-item-details-release-input-weeks' + selectorInput).prop('disabled', true);
 
2124
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).hide();
2125
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).prop('disabled', true);
2126
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).val("0");
 
2127
  //monthly- duration month
2128
  jQuery('.b2s-post-item-details-release-area-div-duration-month' + selectorInput).hide();
2129
  jQuery('.b2s-post-item-details-release-area-label-duration-month' + selectorInput).hide();
2142
  jQuery('.b2s-post-item-details-release-area-label-select-timespan' + selectorInput).hide();
2143
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).hide();
2144
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).prop('disabled');
 
2145
  jQuery('.b2s-post-item-details-release-input-days' + selectorInput).prop('disabled');
2146
  jQuery('.b2s-post-item-details-release-input-daySelect' + selectorInput).hide();
2147
  jQuery('.b2s-post-item-details-release-input-add' + selectorInput).hide();
2170
  jQuery('.b2s-image-remove-btn' + selectorInput + '[data-network-count="-1"]').hide();
2171
  jQuery('.b2s-post-original-area' + selectorInput).removeClass('col-sm-7').removeClass('col-lg-9');
2172
  jQuery('.b2s-post-tool-area' + selectorInput).hide();
 
2173
  //TOS Network Twitter
2174
  if (jQuery('.b2s-post-item-details-release-input-date-select' + selectorInput).attr('data-network-id') == "2") {
2175
  jQuery('.b2s-post-ship-item-copy-original-text' + selectorInput + '[data-network-count="0"]').trigger('click');
2181
  jQuery('.b2s-post-item-details-release-input-date' + selectorInput).prop('disabled', true);
2182
  jQuery('.b2s-post-item-details-release-input-time' + selectorInput).hide();
2183
  jQuery('.b2s-post-item-details-release-input-time' + selectorInput).prop('disabled', true);
 
2184
  for (var i = 0; i <= dataNetworkCount; i++) {
2185
  jQuery('.b2s-post-item-details-release-area-details-row[data-network-count="' + i + '"]' + selectorInput).show();
2186
  jQuery('.b2s-post-item-details-release-input-date[data-network-count="' + i + '"]' + selectorInput).show();
2193
  }
2194
  jQuery('.b2s-post-item-details-release-input-weeks' + selectorInput).hide();
2195
  jQuery('.b2s-post-item-details-release-input-weeks' + selectorInput).prop('disabled');
 
2196
  //monthly- duration month
2197
  jQuery('.b2s-post-item-details-release-area-div-duration-month' + selectorInput).hide();
2198
  jQuery('.b2s-post-item-details-release-area-label-duration-month' + selectorInput).hide();
2211
  jQuery('.b2s-post-item-details-release-area-label-select-timespan' + selectorInput).hide();
2212
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).hide();
2213
  jQuery('.b2s-post-item-details-release-input-select-timespan' + selectorInput).prop('disabled');
 
2214
  //new since v.4.5.0
2215
  jQuery('.b2s-post-item-details-release-area-label-duration' + selectorInput).hide();
2216
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).hide();
2217
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).prop('disabled', true);
2218
  jQuery('.b2s-post-item-details-release-input-interval-select' + selectorInput).val("0");
2219
  jQuery('.b2s-post-item-details-release-input-daySelect' + selectorInput).hide();
 
2220
  jQuery('.b2s-post-item-details-release-input-days' + selectorInput).prop('disabled', true);
2221
  jQuery('.b2s-post-item-details-release-input-add' + selectorInput).show();
2222
  jQuery('.b2s-post-item-details-release-area-details-ul' + selectorInput).show();
2256
  jQuery('.b2s-post-item-details-release-area-details-ul' + selectorInput).show();
2257
  jQuery('.b2s-post-item-details-release-save-settings' + selectorInput).prop('disabled', false);
2258
  jQuery('.b2s-post-item-details-release-save-settings-label' + selectorInput).hide();
 
2259
  for (var i = 0; i <= dataNetworkCount; i++) {
2260
  jQuery('.b2s-post-item-details-release-area-details-row[data-network-count="' + i + '"]' + selectorInput).show();
2261
  //new since v4.5.0
2262
  jQuery('.b2s-post-item-details-release-input-interval-select[data-network-count="' + i + '"]' + selectorInput).show();
2263
  jQuery('.b2s-post-item-details-release-input-interval-select[data-network-count="' + i + '"]' + selectorInput).removeAttr('disabled');
 
2264
  jQuery('.b2s-post-item-details-release-input-date[data-network-count="' + i + '"]' + selectorInput).show();
2265
  jQuery('.b2s-post-item-details-release-input-date[data-network-count="' + i + '"]' + selectorInput).removeAttr('disabled');
2266
  jQuery('.b2s-post-item-details-release-input-daySelect[data-network-count="' + i + '"]' + selectorInput).show();
 
2267
  jQuery('.b2s-post-item-details-release-input-time[data-network-count="' + i + '"]' + selectorInput).show();
2268
  jQuery('.b2s-post-item-details-release-input-time[data-network-count="' + i + '"]' + selectorInput).removeAttr('disabled');
2269
  jQuery('.b2s-post-item-details-release-input-weeks[data-network-count="' + i + '"]' + selectorInput).show();
2367
  //duration times
2368
  jQuery('.b2s-post-item-details-release-area-div-duration-time[data-network-count="' + dataCount + '"]' + selectorInput).show();
2369
  jQuery('.b2s-post-item-details-release-area-label-duration-time[data-network-count="' + dataCount + '"]' + selectorInput).show();
2370
+ jQuery('.b2s-post-item-details-release-input-times[data-network-count="' + dataCount + '"]' + selectorInput).show(); //select
2371
  jQuery('.b2s-post-item-details-release-input-times[data-network-count="' + dataCount + '"]' + selectorInput).removeAttr('disabled'); //select
2372
  //timespan
2373
  jQuery('.b2s-post-item-details-release-area-label-select-timespan[data-network-count="' + dataCount + '"]' + selectorInput).show();
2450
  }
2451
  var newLen = limit - textLength;
2452
  jQuery(".b2s-post-item-countChar[data-network-count='" + networkCountId + "'][data-network-auth-id='" + networkAuthId + "']").html(newLen);
 
2453
  }
2454
 
2455
  function networkCount(networkAuthId) {
2548
  jQuery('.b2s-post-item').hide();
2549
  jQuery('.b2s-post-item').find('.form-control').each(function () {
2550
  jQuery(this).attr("disabled", "disabled");
2551
+ jQuery(this).removeClass('error');
2552
  });
2553
  jQuery('.b2s-network-select-btn').children().removeClass('active').find('.b2s-network-status-img').addClass('b2s-network-hide');
2554
  //Check IS RE-PUBLISH
2643
  minParts3[0] = '0' + minParts3[0];
2644
  }
2645
  var dateParts = dateStr.split('-');
 
2646
  //utc current time
2647
  var now = new Date();
2648
  //offset between utc und user
blog2social.php CHANGED
@@ -6,12 +6,12 @@
6
  * Author: Blog2Social, Adenion
7
  * Text Domain: blog2social
8
  * Domain Path: /languages
9
- * Version: 4.8.0
10
  * Author URI: https://www.blog2social.com
11
  * License: GPL2+
12
  */
13
  //B2SDefine
14
- define('B2S_PLUGIN_VERSION', '480');
15
  define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US')));
16
  define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__));
17
  define('B2S_PLUGIN_URL', plugin_dir_url(__FILE__));
6
  * Author: Blog2Social, Adenion
7
  * Text Domain: blog2social
8
  * Domain Path: /languages
9
+ * Version: 4.8.1
10
  * Author URI: https://www.blog2social.com
11
  * License: GPL2+
12
  */
13
  //B2SDefine
14
+ define('B2S_PLUGIN_VERSION', '481');
15
  define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US')));
16
  define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__));
17
  define('B2S_PLUGIN_URL', plugin_dir_url(__FILE__));
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: auto post, auto publish, social media scheduling, social media calendar, s
4
  Donate link: http://www.blog2social.com
5
  Requires at least: 4.2.2
6
  Tested up to: 4.9.5
7
- Stable tag: 4.8.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -299,6 +299,8 @@ We use the official authentification oAUTH methods to third-party applications p
299
  9. Adjust the best times to schedule in the best time scheduler.
300
 
301
  == Changelog ==
 
 
302
  = 4.8.0 =
303
  Usability Optimization, twitter retweet, more individualize image and content by scheduling
304
  = 4.7.0 =
@@ -361,6 +363,8 @@ Bug Fix: update method
361
  Re-engineered Post dashboard, new one-page preview features: WYSIWYG editors, simplified network selection, new scheduler features: best-times-scheduler, my-times-scheduler, recurring scheduling, multiple accounts per profile (applies to FREE and PREMIUM)
362
 
363
  == Upgrade Notice ==
 
 
364
  = 4.8.0 =
365
  Usability Optimization, twitter retweet, more individualize image and content by scheduling
366
  = 4.7.0 =
4
  Donate link: http://www.blog2social.com
5
  Requires at least: 4.2.2
6
  Tested up to: 4.9.5
7
+ Stable tag: 4.8.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
299
  9. Adjust the best times to schedule in the best time scheduler.
300
 
301
  == Changelog ==
302
+ = 4.8.1 =
303
+ Bugfix: facebook individualize image and content in scheduling prozess
304
  = 4.8.0 =
305
  Usability Optimization, twitter retweet, more individualize image and content by scheduling
306
  = 4.7.0 =
363
  Re-engineered Post dashboard, new one-page preview features: WYSIWYG editors, simplified network selection, new scheduler features: best-times-scheduler, my-times-scheduler, recurring scheduling, multiple accounts per profile (applies to FREE and PREMIUM)
364
 
365
  == Upgrade Notice ==
366
+ = 4.8.1 =
367
+ Bugfix: facebook individualize image and content in scheduling prozess
368
  = 4.8.0 =
369
  Usability Optimization, twitter retweet, more individualize image and content by scheduling
370
  = 4.7.0 =