source: trunk/grails-app/views/common/_feedback.gsp @ 980

Last change on this file since 980 was 980, checked in by j.a.m.wesbeek@…, 9 years ago
  • rewrote the css, javascript and views to use the famfamfam plugin instead
  • deleted the local famfamfam icons
  • Property svn:keywords set to Author Date Rev
File size: 987 bytes
Line 
1<script type="text/javascript">
2        $(document).ready(function() {
3                // hide feedback div
4                $('div.feedback').hide();
5
6                // attach action to icon
7                $('#add_feedback').bind('click',function() {
8                        var f = $('div.feedback');
9
10                        f.find("input:[name='feedbackUrl']").val(window.location);
11                        f.find("input:[name='feedbackWindowWidth']").val(window.innerWidth);
12                        f.find("input:[name='feedbackWindowHeight']").val(window.innerHeight);
13                        f.find("input:[name='feedbackUserAgent']").val(navigator.userAgent);
14                        f.toggle('slow');
15                });
16        });
17</script>
18        <img id="add_feedback" src="${resource(dir: 'images/icons', file: 'bug_add.png', plugin: 'famfamfam')}" style="cursor: pointer;" alt="submit feedback for this page"/>
19        <div class="feedback" id="feedback">
20        <iframe src ="https://trac.nbic.nl/gscf/newticket" width="100%" height="300">
21          <p>Your browser does not support iframes. Click <a href="https://trac.nbic.nl/gscf/newticket" target="_new">here</a> to report a bug.</p>
22        </iframe>
23        </div>
Note: See TracBrowser for help on using the repository browser.