|
|
|
|
@ -312,17 +312,31 @@ if (EXPO.company){ |
|
|
|
|
$input; |
|
|
|
|
this.pullHandler = function (data) { |
|
|
|
|
if (data.success){ |
|
|
|
|
var $fullComplete = $('.full-complete',this.$staticValue); |
|
|
|
|
|
|
|
|
|
$input = $('#id_foundation'); |
|
|
|
|
currValue = $.trim($input.val()); |
|
|
|
|
|
|
|
|
|
this.$staticValue.text(currValue); |
|
|
|
|
$fullComplete.text(currValue); |
|
|
|
|
|
|
|
|
|
$('.p-editable').removeClass('pe-current'); |
|
|
|
|
this.refreshState(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
this.ajaxPath = path; |
|
|
|
|
this.refreshState = function () { |
|
|
|
|
var $fullComplete = $('.full-complete',this.$staticValue), |
|
|
|
|
$notComplete = $('.not-complete',this.$staticValue); |
|
|
|
|
if($.trim($fullComplete.text()) == ''){ |
|
|
|
|
$fullComplete.addClass('hidden'); |
|
|
|
|
$notComplete.removeClass('hidden'); |
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
$fullComplete.removeClass('hidden'); |
|
|
|
|
$notComplete.addClass('hidden'); |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -332,15 +346,29 @@ if (EXPO.company){ |
|
|
|
|
$input; |
|
|
|
|
this.pullHandler = function (data) { |
|
|
|
|
if (data.success){ |
|
|
|
|
var $fullComplete = $('.full-complete',this.$staticValue); |
|
|
|
|
$input = $('#id_staff_number'); |
|
|
|
|
currValue = $.trim($input.val()); |
|
|
|
|
this.$staticValue.text(currValue); |
|
|
|
|
$fullComplete.text(currValue); |
|
|
|
|
$('.p-editable').removeClass('pe-current'); |
|
|
|
|
this.refreshState(); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
this.ajaxPath = path; |
|
|
|
|
this.refreshState = function () { |
|
|
|
|
var $fullComplete = $('.full-complete',this.$staticValue), |
|
|
|
|
$notComplete = $('.not-complete',this.$staticValue); |
|
|
|
|
if($.trim($fullComplete.text()) == ''){ |
|
|
|
|
$fullComplete.addClass('hidden'); |
|
|
|
|
$notComplete.removeClass('hidden'); |
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
$fullComplete.removeClass('hidden'); |
|
|
|
|
$notComplete.addClass('hidden'); |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
Forms.description_form = function (path) { |
|
|
|
|
@ -348,8 +376,10 @@ if (EXPO.company){ |
|
|
|
|
$input = $('#id_description'); |
|
|
|
|
this.pullHandler = function (data) { |
|
|
|
|
if (data.success){ |
|
|
|
|
var $fullComplete = $('.full-complete',this.$staticValue); |
|
|
|
|
|
|
|
|
|
currValue = $.trim($input.val()); |
|
|
|
|
this.$staticValue.text(currValue); |
|
|
|
|
$fullComplete.text(currValue); |
|
|
|
|
|
|
|
|
|
$('.p-editable').removeClass('pe-current'); |
|
|
|
|
this.refreshState(); |
|
|
|
|
@ -357,6 +387,19 @@ if (EXPO.company){ |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
this.ajaxPath = path; |
|
|
|
|
this.refreshState = function () { |
|
|
|
|
var $fullComplete = $('.full-complete',this.$staticValue), |
|
|
|
|
$notComplete = $('.not-complete',this.$staticValue); |
|
|
|
|
if($.trim($fullComplete.text()) == ''){ |
|
|
|
|
$fullComplete.addClass('hidden'); |
|
|
|
|
$notComplete.removeClass('hidden'); |
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
$fullComplete.removeClass('hidden'); |
|
|
|
|
$notComplete.addClass('hidden'); |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
Forms.avatar_form = function (path) { |
|
|
|
|
@ -415,12 +458,15 @@ if (EXPO.company){ |
|
|
|
|
* @param data -data object recieved from server |
|
|
|
|
*/ |
|
|
|
|
this.pullHandler = function (data) { |
|
|
|
|
var divider ='<span>, </span>'; |
|
|
|
|
if (data.success){ |
|
|
|
|
//todo: Назар должен возвращать json формат с url, именем каждого выбранного тега
|
|
|
|
|
// todo: сделать наполнение
|
|
|
|
|
|
|
|
|
|
this.$staticValue.html(''); |
|
|
|
|
for(var i=0; i < data.tags.length; i++){ |
|
|
|
|
this.$staticValue.html(''); |
|
|
|
|
this.$staticValue.append($("<a href='"+data.tags[i].url+"' target='_blank'>"+data.tags[i].text+"</a>")); |
|
|
|
|
if(i != data.tags.length-1) { |
|
|
|
|
this.$staticValue.append($(divider)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.refreshState(); |
|
|
|
|
} |
|
|
|
|
|