-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from H2-invent/dev
Dev
- Loading branch information
Showing
421 changed files
with
25,570 additions
and
26,272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,10 +52,10 @@ [email protected] | |
#MAILER_URL=null://localhost | ||
###< symfony/swiftmailer-bundle ### | ||
|
||
|
||
###ODC Parameters### | ||
imprint=test | ||
dataPrivacy=test | ||
superAdminRole=odc-super-admin | ||
|
||
###Cron Parameters### | ||
CRON_TOKEN=tpyv5yDIV54ifahrVJmuJ40qExRdNa2344DFADFsdsfenN3rCMkQW8Br1o1W9JP9uUc1N | ||
|
@@ -74,4 +74,4 @@ demo_installation=prod #demo | |
|
||
###> LaF ### | ||
laF_version=2.0.0-dev | ||
###< LaF ### | ||
###< LaF ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import $ from "jquery"; | ||
function addFormToCollection($collectionHolderClass) { | ||
var $collectionHolder = $('.' + $collectionHolderClass); | ||
var prototype = $collectionHolder.data('prototype'); | ||
var index = $collectionHolder.data('index'); | ||
var newForm = prototype; | ||
newForm = newForm.replace(/__name__/g, index); | ||
$collectionHolder.data('index', index + 1); | ||
console.log('index', index); | ||
let $newFormLi = $('<li class="d-inline-block list-group-item d-flex justify-content-between align-items-center"></li>') | ||
.append(newForm) | ||
$collectionHolder.append($newFormLi); | ||
addTagFormDeleteLink($newFormLi); | ||
} | ||
|
||
function addTagFormDeleteLink($tagFormLi) { | ||
var $removeFormButton = $('<a href="#" class="deleteFreeField" type="remove-group"><div class="text-danger px-1 " data-toggle="tooltip" title="Lösche Freifeld" data-original-title="Lösche Freifeld">X</div></a>'); | ||
$tagFormLi.append($removeFormButton); | ||
$removeFormButton.on('click', function(e) { | ||
$tagFormLi.remove(); | ||
}); | ||
} | ||
function initFreeFields(){ | ||
$('#add_item_link').off('click') | ||
var $groupsCollectionHolder = $('ul.freeField'); | ||
$groupsCollectionHolder.find('li').each(function() { | ||
addTagFormDeleteLink($(this)); | ||
}); | ||
|
||
$groupsCollectionHolder.data('index', $groupsCollectionHolder.find('input').length); | ||
$('#add_item_link').on('click', function(e) { | ||
|
||
var $collectionHolderClass = $(e.currentTarget).data('collectionHolderClass'); | ||
addFormToCollection($collectionHolderClass); | ||
}) | ||
}; | ||
export {initFreeFields}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.