Skip to content

Commit

Permalink
Merge pull request #157 from FriendsOfREDAXO/cb-yform-liste
Browse files Browse the repository at this point in the history
Form-Linkliste repariert
  • Loading branch information
christophboecker authored Jan 3, 2025
2 parents 51ae211 + 8d83526 commit 5329022
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# MarkItUp Changelog

## [4.0.0] Work in Progress
## [4.0.1](https://github.com/FriendsOfREDAXO/markitup/releases/tag/4.0.1) - 03.01.2024

- Bugfix beim Einbinden von YForm-Links; Die Auswahlliste wurde nach einer YForm-Änderung nicht mehr angzeigt

- Abschluß der Umstellung auf Namespace; als "deprecated" markierte Elemte entfernt
- Funktionen:
- `markitup_cache_update()` => `FriendsOfRedaxo\MarkItUp\Cache::update`
Expand Down
15 changes: 5 additions & 10 deletions assets/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,9 @@ function markitupYformConnectionCreate( container ) {
return $yform;
}

function markitupYformOpen( id, tablename, data_id ){
newWindow(
'y'+id,
'index.php?page=yform/manager/data_edit&table_name='+tablename+'&rex_yform_manager_popup=1&func=edit&data_id='+data_id,
1200,
Math.max(screen.height*0.75,800),
// ',status=no,resizable=yes,nav=no'
);
function markitupYformOpen( id, targetfield, url ){
let newWindowLink = url + '&rex_yform_manager_opener[id]='+id+'&rex_yform_manager_opener[field]='+targetfield+'&rex_yform_manager_opener[multiple]=0';
return newWindow( id, newWindowLink, 1200,800,',status=yes,resizable=yes');
}

//Start - functions for markdown
Expand Down Expand Up @@ -192,7 +187,7 @@ function markitupYformOpen( id, tablename, data_id ){
markitup._yform['yform'] = $yform;
}
$yform.done = false;
var dokument = openYFormDataset($yform.id, table+'.id', 'index.php?page=yform/manager/data_edit&table_name='+table );
var dokument = markitupYformOpen($yform.id, table+'.id', 'index.php?page=yform/manager/data_edit&table_name='+table );

$(dokument).on('rex:YForm_selectData', function (event, id) {
event.preventDefault();
Expand Down Expand Up @@ -371,7 +366,7 @@ function markitupYformOpen( id, tablename, data_id ){
markitup._yform[table] = $yform;
}
$yform.done = false;
var dokument = openYFormDataset($yform.id, table+'.id', 'index.php?page=yform/manager/data_edit&table_name='+table );
var dokument = markitupYformOpen($yform.id, table+'.id', 'index.php?page=yform/manager/data_edit&table_name='+table );

$(dokument).on('rex:YForm_selectData', function (event, id) {
event.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: markitup
version: '4.0.0'
version: '4.0.1'
author: Friends Of REDAXO
supportpage: github.com/FriendsOfREDAXO/markitup

Expand Down

0 comments on commit 5329022

Please sign in to comment.