##// END OF EJS Templates
Merge pull request #7474 from mathieu1/tooltip-prevent-default...
Matthias Bussonnier -
r19963:5838bae0 merge
parent child Browse files
Show More
@@ -40,6 +40,7 define([
40 var expandlink = $('<a/>').attr('href', "#").addClass("ui-corner-all") //rounded corner
40 var expandlink = $('<a/>').attr('href', "#").addClass("ui-corner-all") //rounded corner
41 .attr('role', "button").attr('id', 'expanbutton').attr('title', 'Grow the tooltip vertically (press shift-tab twice)').click(function () {
41 .attr('role', "button").attr('id', 'expanbutton').attr('title', 'Grow the tooltip vertically (press shift-tab twice)').click(function () {
42 that.expand();
42 that.expand();
43 event.preventDefault();
43 }).append(
44 }).append(
44 $('<span/>').text('Expand').addClass('ui-icon').addClass('ui-icon-plus'));
45 $('<span/>').text('Expand').addClass('ui-icon').addClass('ui-icon-plus'));
45
46
@@ -49,6 +50,7 define([
49 morelink.append(morespan);
50 morelink.append(morespan);
50 morelink.click(function () {
51 morelink.click(function () {
51 that.showInPager(that._old_cell);
52 that.showInPager(that._old_cell);
53 event.preventDefault();
52 });
54 });
53
55
54 // close the tooltip
56 // close the tooltip
@@ -57,6 +59,7 define([
57 closelink.append(closespan);
59 closelink.append(closespan);
58 closelink.click(function () {
60 closelink.click(function () {
59 that.remove_and_cancel_tooltip(true);
61 that.remove_and_cancel_tooltip(true);
62 event.preventDefault();
60 });
63 });
61
64
62 this._clocklink = $('<a/>').attr('href', "#");
65 this._clocklink = $('<a/>').attr('href', "#");
@@ -69,6 +72,7 define([
69 this._clocklink.append(clockspan);
72 this._clocklink.append(clockspan);
70 this._clocklink.click(function () {
73 this._clocklink.click(function () {
71 that.cancel_stick();
74 that.cancel_stick();
75 event.preventDefault();
72 });
76 });
73
77
74
78
General Comments 0
You need to be logged in to leave comments. Login now