|
|
|
|
@ -187,12 +187,11 @@ 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; |
|
|
|
|
@ -232,33 +231,37 @@ if (EXPO.common){ |
|
|
|
|
/** |
|
|
|
|
* "http://" placeholder for social profiles form on user and company "edit profiles" pages |
|
|
|
|
*/ |
|
|
|
|
if($socialForm.length){ |
|
|
|
|
for(var i = 0; i < self.opt.httpFormIds.length; i++){ |
|
|
|
|
var $instance = $('#'+self.opt.httpFormIds[i]); |
|
|
|
|
|
|
|
|
|
$('input:text', $socialForm).on('focus', function () { |
|
|
|
|
var $this = $(this), |
|
|
|
|
placeholder = self.opt.socialInputMask; |
|
|
|
|
if($instance.length){ |
|
|
|
|
|
|
|
|
|
if($.trim($this.val()) == ''){ |
|
|
|
|
$this.val(placeholder[0]); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$('input:text', $socialForm).on('keypress', function () { |
|
|
|
|
var $this = $(this), |
|
|
|
|
placeholder = self.opt.socialInputMask; |
|
|
|
|
$('input:text', $instance).on('focus', 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(''); |
|
|
|
|
if($.trim($this.val()) == ''){ |
|
|
|
|
$this.val(placeholder[0]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
$('input:text', $instance).on('keypress', function () { |
|
|
|
|
var $this = $(this), |
|
|
|
|
placeholder = self.opt.socialInputMask; |
|
|
|
|
|
|
|
|
|
if($.trim($this.val()) == ''){ |
|
|
|
|
$this.val(placeholder[0]); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$('input:text', $instance).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(''); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// seohide
|
|
|
|
|
|
|
|
|
|
|