24 lines
833 B
JavaScript
24 lines
833 B
JavaScript
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
|
|
app.pages.Settings = Backbone.View.extend({
|
|
initialize: function() {
|
|
$(".settings-visibility").tooltip({placement: "top"});
|
|
$(".profile-visibility-hint").tooltip({placement: "top"});
|
|
$("[name='profile[public_details]']").bootstrapSwitch();
|
|
|
|
new Diaspora.TagsAutocomplete("#profile_tag_string", {
|
|
preFill: gon.preloads.tagsArray
|
|
});
|
|
new Diaspora.ProfilePhotoUploader();
|
|
|
|
this.viewAspectSelector = new app.views.PublisherAspectSelector({
|
|
el: $(".aspect-dropdown"),
|
|
form: $("#post-default-aspects")
|
|
});
|
|
$("#update_profile_form").areYouSure();
|
|
|
|
$("#register-protocol-handler").click(function() {
|
|
Diaspora.ProtocolHandler.register();
|
|
});
|
|
}
|
|
});
|
|
// @license-end
|