~ubuntu-branches/ubuntu/trusty/phpmyadmin/trusty

« back to all changes in this revision

Viewing changes to js/ajax.js

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-10-07 20:18:01 UTC
  • mfrom: (1.2.46)
  • Revision ID: package-import@ubuntu.com-20131007201801-l5l0ril5992p8sxz
Tags: 4:4.0.8-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
        // leave the browser deal with it natively (e.g: file download)
129
129
        // or leave an existing ajax event handler present elsewhere deal with it
130
130
        var href = $(this).attr('href');
131
 
        if (event.shiftKey || event.ctrlKey) {
 
131
        if (typeof event != 'undefined' && (event.shiftKey || event.ctrlKey)) {
132
132
            return true;
133
133
        } else if ($(this).attr('target')) {
134
134
            return true;
138
138
            return true;
139
139
        } else if (href && href.match(/^mailto/)) {
140
140
            return true;
141
 
        } else if ($(this).hasClass('ui-datepicker-next') || 
 
141
        } else if ($(this).hasClass('ui-datepicker-next') ||
142
142
                   $(this).hasClass('ui-datepicker-prev')
143
143
                  ) {
144
144
            return true;