PluginProbe
CBX Map for Google Map & OpenStreetMap / 1.1.11
CBX Map for Google Map & OpenStreetMap v1.1.11
trunk 1.1.10 1.1.11 1.1.12 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5
cbxgooglemap / assets / js / cbxgooglemap-admin.js

cbxgooglemap-admin.js in CBX Map for Google Map & OpenStreetMap 1.1.11, at assets/js/cbxgooglemap-admin.js

29 lines 815 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function ($) {
2 'use strict';
3
4 $(document).ready(function ($) {
5
6 //select all text on click of shortcode text
7 $('.cbxgooglemapshortcode').on('click', function (event) {
8 var text = $(this).text();
9 var $this = $(this);
10 var $input = $('<input class="cbxgooglemapshortcode-text" type="text">');
11 $input.prop('value', text);
12 $input.insertAfter($(this));
13 $input.focus();
14 $input.select();
15 try {
16 document.execCommand('copy');
17 } catch (err) {
18
19 }
20 $this.hide();
21 $input.on('focusout', function (event) {
22 $this.show();
23 $input.remove();
24 });
25 });
26
27 });
28 })(jQuery);
29