Sha256: ba8a90b6762c6041a6dd2d762d2e5a3fd1c64c4211ec9d4f6a358b6cd3e74f5c
Contents?: true
Size: 854 Bytes
Versions: 75
Compression:
Stored size: 854 Bytes
Contents
function init_profile_form(){ var form = $("#user_form"); form.validate(); $('#profie-form-ajax-password').validate({ // change password submitHandler: function () { showLoading(); var form2 = $(this.currentForm); $.post(form2.attr("action"), form2.serialize(), function (res) { form2.flash_message(res); }).complete(function () { hideLoading(); }); return false; } }); form.find('.btn_change_photo').click(function(){ $.fn.upload_filemanager({ formats: 'image', selected: function (file) { form.find('#user_meta_avatar').val(file.url); form.find('img.img-thumbnail').attr('src', file.url); } }); return false; }); }
Version data entries
75 entries across 75 versions & 2 rubygems