Skip to content

Commit 309ccc6

Browse files
committed
Get print capabilities
1 parent 0575224 commit 309ccc6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

assets/javascripts/gtt_print.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ $(function() {
1010
});
1111
}
1212

13-
$(document).on('click', '.print_box input[type=button]', function(e){
14-
console.log('TODO: submit print');
13+
$(document).on('click', '.print_box input[type=button]', function (e) {
14+
15+
var config = $('form.print_box select').val();
16+
17+
$.getJSON(server + "print/" + config + "/capabilities.json", function (data) {
18+
console.log(data);
19+
});
20+
1521
return false;
1622
});
1723
});

0 commit comments

Comments
 (0)