Unverified Commit caf46fdc authored by Benjamin Neff's avatar Benjamin Neff Committed by Steffen van Bergerem
Browse files

Move initialization of mobile profile edit functions to file

closes #7113
parent be33b425
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ Note: Although this is a minor release, the configuration file changed because t
* Use translation for NodeInfo services [#7102](https://github.com/diaspora/diaspora/pull/7102)
* Adopt new Mapbox tile URIs [#7066](https://github.com/diaspora/diaspora/pull/7066)
* Refactored post interactions on the single post view [#7089](https://github.com/diaspora/diaspora/pull/7089)
* Extract inline JavaScript [#7113](https://github.com/diaspora/diaspora/pull/7113)

## Bug fixes
* Post comments no longer get collapsed when interacting with a post [#7040](https://github.com/diaspora/diaspora/pull/7040)
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
//= require widgets/timeago
//= require mobile/mobile_application
//= require mobile/mobile_file_uploader
//= require mobile/mobile_profile_edit
//= require mobile/profile_aspects
//= require mobile/tag_following
//= require mobile/publisher
+12 −0
Original line number Diff line number Diff line
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later

$(document).ready(function() {
  if (Diaspora.Page === "ProfilesEdit") {
    new Diaspora.TagsAutocomplete("#profile_tag_string", {preFill: gon.preloads.tagsArray});
    new Diaspora.ProfilePhotoUploader();
  } else if (Diaspora.Page === "UsersGettingStarted") {
    new Diaspora.TagsAutocomplete("#follow_tags", {preFill: gon.preloads.tagsArray});
    new Diaspora.ProfilePhotoUploader();
  }
});
// @license-end
+0 −7
Original line number Diff line number Diff line
@@ -2,13 +2,6 @@
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.

- content_for :head do
  :javascript
    $(document).ready(function () {
      new Diaspora.TagsAutocomplete("#profile_tag_string", {preFill: gon.preloads.tagsArray});
      new Diaspora.ProfilePhotoUploader();
    });

.settings_container.container-fluid
  .row
    .col-md-12
+0 −7
Original line number Diff line number Diff line
@@ -2,13 +2,6 @@
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

- content_for :head do
  :javascript
    $(document).ready(function () {
      new Diaspora.TagsAutocomplete("#follow_tags");
      new Diaspora.ProfilePhotoUploader();
    });

:css
  .media, .bd{ overflow: visible;}