I
I
Ivan2018-03-04 14:31:34
JavaScript
Ivan, 2018-03-04 14:31:34

How to display received data?

I bought a foreign cms, decided to add my data to the database, edit and display them on the site.
Added data to the database, taught the script to edit this data on the site itself, but the data cannot be displayed.
Modeled on the existing gender
field created genders, genderd, genderf
e28168ee85c591e80c968d448638e6ec.png
As a result, gender is displayed on the site, and genders, genderd, genderf are visible only in the code, the picture above. Because of what ?
Data editing and output code

<md-input-container>
                <label>{{ 'genders' | translate }}</label>
                <input type="text" ng-model="users.accountSettings.genders">
            </md-input-container>

            <md-input-container>
                <label>{{ 'genderd' | translate }}</label>
                <input type="text" ng-model="users.accountSettings.genderd">
            </md-input-container>

            <md-input-container>
                <label>{{ 'genderf' | translate }}</label>
                <input type="text" ng-model="users.accountSettings.genderf">
            </md-input-container>

This code successfully edits and saves data in the database, displays it in the code but does not display it on the site itself, although the native code
<md-input-container>
                <label>{{ 'gender' | translate }}</label>
                <input type="text" ng-model="users.accountSettings.gender">
            </md-input-container>

displays the gender value .
There is a core.min.js file in cms, apparently it is responsible for displaying information on the site, here is part of the code for gender
this.accountSettings.last_name=e.last_name,this.accountSettings.gender=e.gender)},

I add genders, genderd, genderf to this line like this
assignCurrentUser: function(e) {
                e && (r.isDemo && (e.isAdmin = !0), 
        this.current = e, 
        this.accountSettings.username = 
        this.getUsernameForCurrentUser(),
        
        this.accountSettings.first_name = e.first_name, 
        this.accountSettings.last_name = e.last_name, 
        this.accountSettings.genders = e.genders, 
        this.accountSettings.genderd = e.genderd, 
        this.accountSettings.genderf = e.genderf, 
        this.accountSettings.gender = e.gender)
            },

as a result, the page does not load, the preloader is constantly spinning.
Tell me what I'm doing wrong? I tried to rely on existing pieces of code.
So far, it seems to me that the problem is in the lower core.min.js script (before </body>).

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question