Move initialization of mobile profile edit functions to file

closes #7113
This commit is contained in:
Benjamin Neff 2016-09-21 01:01:40 +02:00 committed by Steffen van Bergerem
parent be33b425ba
commit caf46fdcb9
No known key found for this signature in database
GPG key ID: 315C9787D548DC6B
5 changed files with 14 additions and 14 deletions

View file

@ -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)

View file

@ -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

View file

@ -0,0 +1,12 @@
// @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

View file

@ -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

View file

@ -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;}