|
|
|
|
@ -187,10 +187,12 @@ if (EXPO.common){ |
|
|
|
|
validErrorClass = self.opt.staticValidation.errorClass, |
|
|
|
|
validContainerClass = self.opt.staticValidation.containerClass, |
|
|
|
|
$staticFields, |
|
|
|
|
$socialForm, |
|
|
|
|
blobClass = self.opt.staticValidation.blobClass; |
|
|
|
|
|
|
|
|
|
$(function () { |
|
|
|
|
$staticFields = $('.'+validErrorClass); |
|
|
|
|
$socialForm = $('#'+self.opt.socialFormId); |
|
|
|
|
$('.'+addClass+', .'+remClass).on('click', function(event){ |
|
|
|
|
addText = self.opt.addCalendarText; |
|
|
|
|
remText = self.opt.removeCalendarText; |
|
|
|
|
@ -227,6 +229,37 @@ if (EXPO.common){ |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* "http://" placeholder for social profiles form on user and company "edit profiles" pages |
|
|
|
|
*/ |
|
|
|
|
if($socialForm.length){ |
|
|
|
|
|
|
|
|
|
$('input:text', $socialForm).on('focus', function () { |
|
|
|
|
var $this = $(this), |
|
|
|
|
placeholder = self.opt.socialInputMask; |
|
|
|
|
|
|
|
|
|
if($.trim($this.val()) == ''){ |
|
|
|
|
$this.val(placeholder[0]); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$('input:text', $socialForm).on('keypress', function () { |
|
|
|
|
var $this = $(this), |
|
|
|
|
placeholder = self.opt.socialInputMask; |
|
|
|
|
|
|
|
|
|
if($.trim($this.val()) == ''){ |
|
|
|
|
$this.val(placeholder[0]); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$('input:text', $socialForm).on('blur', function () { |
|
|
|
|
var $this = $(this), |
|
|
|
|
placeholder = self.opt.socialInputMask; |
|
|
|
|
for(var i =0; i< placeholder.length; i++){ |
|
|
|
|
if($.trim($this.val()) == placeholder[i]){ |
|
|
|
|
$this.val(''); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|