Skip to content

Commit

Permalink
Remove jquery wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ilestis committed Jun 30, 2024
1 parent a0b00b4 commit f234862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 4 additions & 6 deletions resources/js/components/families/FamilyTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<div class="field field field-colour flex flex-col gap-1">
<label>{{ this.texts.modals.fields.colour }}</label>
<div>
<input v-model="colour" name="colour" type="text" maxlength="7" data-append-to="#family-tree-modal" class="w-full spectrum" id="family_tree_colour" @keyup.enter="saveModal()"/>
<input v-model="colour" name="colour" type="text" maxlength="7" data-append-to="#family-tree-modal" class="w-full spectrum" id="family_tree_colour" @keyup.enter="saveModal()" ref="colour" />
</div>
</div>

Expand Down Expand Up @@ -204,7 +204,6 @@ export default {
maxX: 0,
maxY: 0,
colourField: 'input[name="colour"]',
modal: 'family-tree-modal',
founderField: 'select[name="founder_id_ft"]',
entityField: 'select[name="character_id_ft"]',
Expand Down Expand Up @@ -397,7 +396,7 @@ export default {
if (object.uuid === this.currentUuid) {
object.role = this.relation;
object.cssClass = this.cssClass;
object.colour = $(this.colourField).val();
object.colour = this.colour;
object.visibility = this.visibility;
object.isUnknown = this.isUnknown;
result.push(object);
Expand All @@ -423,7 +422,6 @@ export default {
},
addRelation() {
let entity_id = $(this.entityField).val();
this.colour = $(this.colourField).val();
if (this.isUnknown) {
this.insertUnknownRelation();
this.isDirty = true;
Expand Down Expand Up @@ -638,7 +636,7 @@ export default {
object.role = this.relation;
object.isUnknown = this.isUnknown;
object.cssClass = this.cssClass;
object.colour = $(this.colourField).val();
object.colour = this.colour;
object.visibility = this.visibility;
object.entity_id = object.entity_id;
result.push(object);
Expand Down Expand Up @@ -674,7 +672,7 @@ export default {
}
object.role = this.relation;
object.cssClass = this.cssClass;
object.colour = $(this.colourField).val();
object.colour = this.colour;
object.visibility = this.visibility;
object.isUnknown = this.isUnknown;
object.entity_id = entity_id;
Expand Down
2 changes: 0 additions & 2 deletions resources/js/components/passport/Clients.vue
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@
this.openModal('editModal');
this.$refs.editName.focus();
//$('#modal-edit-client').modal('show');
},
/**
Expand All @@ -312,7 +311,6 @@
form.redirect = '';
form.errors = [];
//$(modal).modal('hide');
this.closeModal(modal);
})
.catch(error => {
Expand Down

0 comments on commit f234862

Please sign in to comment.