FlightGear wiki:Instant-Refs: Difference between revisions

Jump to navigation Jump to search
m
(added an *experimental* jquery dialog output + escapeHtml for code snippets quoting (not yet used))
Line 49: Line 49:


== The Script ==
== The Script ==
<syntaxhighlight lang="javascript">
// ==UserScript==
// ==UserScript==
// @name      instant-cquotes
// @name      instant-cquotes
Line 148: Line 149:
             var diagParam = { title: "Copy your quote with CTRL-C",
             var diagParam = { title: "Copy your quote with CTRL-C",
                               modal: true,
                               modal: true,
                               buttons: [{ text: "Select all", click: function () { $(this).select(); } },
                               buttons: [{ text: "Select all", click: function () { $('quotedtext').select(); } },
                                         { text: "Cancel", click: function () { $('quotedtext').dialog("close"); } }]
                                         { text: "Cancel", click: function () { $(this).dialog("close"); } }]
             };
             };
                                          
                                          
573

edits

Navigation menu