Skip to content

Commit

Permalink
Merge pull request #2114 from yama/1.4.x-refactor
Browse files Browse the repository at this point in the history
1.4.x refactor
  • Loading branch information
Dmi3yy authored Jan 5, 2023
2 parents ab762ef + 2e92305 commit 4f1f111
Show file tree
Hide file tree
Showing 7 changed files with 475 additions and 472 deletions.
14 changes: 7 additions & 7 deletions assets/modules/docmanager/tv.ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function renderFormElement($field_type, $field_id, $default_text, $field_element
if (strlen($itemvalue) == 0) {
$itemvalue = $item;
}
$field_html .= '<input type="checkbox" value="' . htmlspecialchars($itemvalue) . '" id="tv_' . $i . '" name="tv' . $field_id . '[]" ' . (in_array($itemvalue, $field_value) ? " checked='checked'" : "") . ' onchange="documentDirty=true;" /><label for="tv_' . $i . '">' . $item . '</label><br />';
$field_html .= '<input type="checkbox" value="' . htmlspecialchars($itemvalue) . '" id="tv_' . $field_id . '" name="tv' . $field_id . '[]" ' . (in_array($itemvalue, $field_value) ? " checked='checked'" : "") . ' onchange="documentDirty=true;" /><label for="tv_' . $i . '">' . $item . '</label><br />';
$i++;
}
break;
Expand Down Expand Up @@ -183,21 +183,21 @@ function OpenServerBrowser(url, width, height ) {
sOptions += ',top=' + iTop ;
var oWindow = window.open( url, 'FCKBrowseWindow', sOptions ) ;
}
}
function BrowseServer(ctrl) {
lastImageCtrl = ctrl;
var w = screen.width * 0.7;
var h = screen.height * 0.7;
OpenServerBrowser('media/browser/{$which_browser}/browser.php?Type=images', w, h);
}
function BrowseFileServer(ctrl) {
lastFileCtrl = ctrl;
var w = screen.width * 0.7;
var h = screen.height * 0.7;
OpenServerBrowser('media/browser/{$which_browser}/browser.php?Type=files', w, h);
}
function SetUrl(url, width, height, alt){
if(lastFileCtrl) {
var c = document.templatevariables[lastFileCtrl];
Expand Down Expand Up @@ -238,21 +238,21 @@ function OpenServerBrowser(url, width, height ) {
var oWindow = window.open( url, 'FCKBrowseWindow', sOptions ) ;
}
function BrowseServer(ctrl) {
lastImageCtrl = ctrl;
var w = screen.width * 0.7;
var h = screen.height * 0.7;
OpenServerBrowser('media/browser/{$which_browser}/browser.php?Type=images', w, h);
}
function BrowseFileServer(ctrl) {
lastFileCtrl = ctrl;
var w = screen.width * 0.7;
var h = screen.height * 0.7;
OpenServerBrowser('media/browser/{$which_browser}/browser.php?Type=files', w, h);
}
function SetUrl(url, width, height, alt){
if(lastFileCtrl) {
var c = document.templatevariables[lastFileCtrl];
Expand Down
Loading

0 comments on commit 4f1f111

Please sign in to comment.