Skip to content

Commit 9eb4e3b

Browse files
author
Alcino Van Rooyen
committed
added scrollbar
1 parent 2aa4524 commit 9eb4e3b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

js/designTreeSelect.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@
113113
.print_app_indent_list {
114114
margin-left: 20px
115115
}
116+
print_dot_app_design_list > div {
117+
max-height: 290px;
118+
overflow-y: scroll;
119+
}
116120
</style>`;
117121
document.head.insertAdjacentHTML('beforeEnd', style);
118122

printapp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function print_app_reset_project() {
169169
// FETCH DESIGNS FOR ASSIGNING IN BACKEND.
170170
public function print_app_fetch_designs() {
171171
$authKey = get_option('print_app_secret_key');
172-
$url = sanitize_url( print_app_RUNTIME_API_URL.'/designs'.( isset($_POST['path']) ? '/'.sanitize_url( $_POST['path'] ) : '' ) );
172+
$url = print_app_RUNTIME_API_URL.'/designs'.( isset($_POST['path']) ? '/'.$_POST['path'] : '' ) ;
173173
$response = wp_remote_get( $url , array('headers'=>array('Authorization' => $authKey) ) );
174174
wp_die( wp_remote_retrieve_body($response) );
175175
}

0 commit comments

Comments
 (0)