Changeset 1203766
- Timestamp:
- 07/22/2015 08:27:40 AM (11 years ago)
- Location:
- pasteboard
- Files:
-
- 12 edited
- 3 copied
-
tags/1.1 (copied) (copied from pasteboard/trunk)
-
tags/1.1/js/paste_popup.js (modified) (2 diffs)
-
tags/1.1/print.php (modified) (2 diffs)
-
tags/1.1/readme.txt (modified) (2 diffs)
-
tags/1.2 (copied) (copied from pasteboard/trunk)
-
tags/1.2/js/paste_popup.js (modified) (2 diffs)
-
tags/1.2/print.php (modified) (2 diffs)
-
tags/1.2/readme.txt (modified) (2 diffs)
-
tags/2.0 (copied) (copied from pasteboard/trunk)
-
tags/2.0/js/paste_popup.js (modified) (2 diffs)
-
tags/2.0/print.php (modified) (2 diffs)
-
tags/2.0/readme.txt (modified) (2 diffs)
-
trunk/js/paste_popup.js (modified) (2 diffs)
-
trunk/print.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pasteboard/tags/1.1/js/paste_popup.js
r1191860 r1203766 2 2 3 3 function onPasteProcess(){ 4 jQuery("#screenshot_paste").attr("src", paste);5 jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords});4 try { 5 jQuery("#screenshot_paste").attr("src", paste); 6 6 7 jQuery("#tabs li").each(function(){ 8 jQuery(this).click(function(){ 9 pasteboard_Tab(jQuery(this).attr("tab")); 7 try { 8 jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords}); 9 }catch(err) { 10 11 } 12 13 jQuery("#tabs li").each(function(){ 14 jQuery(this).click(function(){ 15 pasteboard_Tab(jQuery(this).attr("tab")); 16 }); 10 17 }); 11 });12 18 13 if(parseInt(readCookie('pasteboard_quality'))>0){ 14 jQuery("#pasteboard_quality").val(readCookie('pasteboard_quality')); 19 if(parseInt(readCookie('pasteboard_quality'))>0){ 20 jQuery("#pasteboard_quality").val(readCookie('pasteboard_quality')); 21 } 22 }catch(rootError) { 23 alert(rootError); 15 24 } 16 25 } … … 56 65 57 66 function appendText(){ 58 var imageData = getCrop(coords[0],coords[1],coords[2],coords[3]); 59 jQuery("button").prop('disabled', true); 60 jQuery("#appendButton").text("Please Wait"); 61 jQuery.post( "../?pasteboard=paste", { post_id: post_id, title : jQuery("#pasteTitle").val(), x:coords[0],y:coords[1],w:coords[2],h:coords[3], imageData: imageData }, function(data){ 62 addImages(data); 63 }); 67 try { 68 var imageData = getCrop(coords[0],coords[1],coords[2],coords[3]); 69 jQuery("button").prop('disabled', true); 70 jQuery("#appendButton").text("Please Wait"); 71 jQuery.post( "../?pasteboard=paste", { post_id: post_id, title : jQuery("#pasteTitle").val(), x:coords[0],y:coords[1],w:coords[2],h:coords[3], imageData: imageData }, function(data){ 72 addImages(data); 73 }); 74 }catch(rootError) { 75 alert(rootError); 76 } 64 77 } 65 78 -
pasteboard/tags/1.1/print.php
r1191860 r1203766 3 3 /* 4 4 Plugin Name: PasteBoard 5 Version: 1. 05 Version: 1.1 6 6 Plugin URI: http://imagets.com 7 7 Description: You can paste all images from your desktop easily. Paste your snapshots all region from photoshop. No need to upload images, just paste to your editor. You can crop images before paste. … … 52 52 </div> 53 53 54 < divid="footer-menu">54 <form action="javascript:appendText()" method="post" id="footer-menu"> 55 55 <input id="pasteTitle" placeholder="Enter title for image"> 56 56 <button id="appendButton" class="btn-primary" onclick="appendText();">Add to text</button> 57 57 <button class="btn-danger" onclick="cancelPaste();">Cancel</button> 58 </ div>58 </form> 59 59 </div> 60 60 -
pasteboard/tags/1.1/readme.txt
r1191860 r1203766 1 === P lugin Name===1 === Pasteboard === 2 2 Tags: screenshot, copy paste, crop images 3 3 Requires at least: 4.0 … … 30 30 == Changelog == 31 31 32 = 1.2 [22/07/15] = 32 33 = 1.0 [11/06/15] = 33 34 * Initial version -
pasteboard/tags/1.2/js/paste_popup.js
r1191860 r1203766 2 2 3 3 function onPasteProcess(){ 4 jQuery("#screenshot_paste").attr("src", paste);5 jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords});4 try { 5 jQuery("#screenshot_paste").attr("src", paste); 6 6 7 jQuery("#tabs li").each(function(){ 8 jQuery(this).click(function(){ 9 pasteboard_Tab(jQuery(this).attr("tab")); 7 try { 8 jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords}); 9 }catch(err) { 10 11 } 12 13 jQuery("#tabs li").each(function(){ 14 jQuery(this).click(function(){ 15 pasteboard_Tab(jQuery(this).attr("tab")); 16 }); 10 17 }); 11 });12 18 13 if(parseInt(readCookie('pasteboard_quality'))>0){ 14 jQuery("#pasteboard_quality").val(readCookie('pasteboard_quality')); 19 if(parseInt(readCookie('pasteboard_quality'))>0){ 20 jQuery("#pasteboard_quality").val(readCookie('pasteboard_quality')); 21 } 22 }catch(rootError) { 23 alert(rootError); 15 24 } 16 25 } … … 56 65 57 66 function appendText(){ 58 var imageData = getCrop(coords[0],coords[1],coords[2],coords[3]); 59 jQuery("button").prop('disabled', true); 60 jQuery("#appendButton").text("Please Wait"); 61 jQuery.post( "../?pasteboard=paste", { post_id: post_id, title : jQuery("#pasteTitle").val(), x:coords[0],y:coords[1],w:coords[2],h:coords[3], imageData: imageData }, function(data){ 62 addImages(data); 63 }); 67 try { 68 var imageData = getCrop(coords[0],coords[1],coords[2],coords[3]); 69 jQuery("button").prop('disabled', true); 70 jQuery("#appendButton").text("Please Wait"); 71 jQuery.post( "../?pasteboard=paste", { post_id: post_id, title : jQuery("#pasteTitle").val(), x:coords[0],y:coords[1],w:coords[2],h:coords[3], imageData: imageData }, function(data){ 72 addImages(data); 73 }); 74 }catch(rootError) { 75 alert(rootError); 76 } 64 77 } 65 78 -
pasteboard/tags/1.2/print.php
r1191860 r1203766 3 3 /* 4 4 Plugin Name: PasteBoard 5 Version: 1. 05 Version: 1.1 6 6 Plugin URI: http://imagets.com 7 7 Description: You can paste all images from your desktop easily. Paste your snapshots all region from photoshop. No need to upload images, just paste to your editor. You can crop images before paste. … … 52 52 </div> 53 53 54 < divid="footer-menu">54 <form action="javascript:appendText()" method="post" id="footer-menu"> 55 55 <input id="pasteTitle" placeholder="Enter title for image"> 56 56 <button id="appendButton" class="btn-primary" onclick="appendText();">Add to text</button> 57 57 <button class="btn-danger" onclick="cancelPaste();">Cancel</button> 58 </ div>58 </form> 59 59 </div> 60 60 -
pasteboard/tags/1.2/readme.txt
r1191860 r1203766 1 === P lugin Name===1 === Pasteboard === 2 2 Tags: screenshot, copy paste, crop images 3 3 Requires at least: 4.0 … … 30 30 == Changelog == 31 31 32 = 1.2 [22/07/15] = 32 33 = 1.0 [11/06/15] = 33 34 * Initial version -
pasteboard/tags/2.0/js/paste_popup.js
r1191860 r1203766 2 2 3 3 function onPasteProcess(){ 4 jQuery("#screenshot_paste").attr("src", paste);5 jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords});4 try { 5 jQuery("#screenshot_paste").attr("src", paste); 6 6 7 jQuery("#tabs li").each(function(){ 8 jQuery(this).click(function(){ 9 pasteboard_Tab(jQuery(this).attr("tab")); 7 try { 8 jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords}); 9 }catch(err) { 10 11 } 12 13 jQuery("#tabs li").each(function(){ 14 jQuery(this).click(function(){ 15 pasteboard_Tab(jQuery(this).attr("tab")); 16 }); 10 17 }); 11 });12 18 13 if(parseInt(readCookie('pasteboard_quality'))>0){ 14 jQuery("#pasteboard_quality").val(readCookie('pasteboard_quality')); 19 if(parseInt(readCookie('pasteboard_quality'))>0){ 20 jQuery("#pasteboard_quality").val(readCookie('pasteboard_quality')); 21 } 22 }catch(rootError) { 23 alert(rootError); 15 24 } 16 25 } … … 56 65 57 66 function appendText(){ 58 var imageData = getCrop(coords[0],coords[1],coords[2],coords[3]); 59 jQuery("button").prop('disabled', true); 60 jQuery("#appendButton").text("Please Wait"); 61 jQuery.post( "../?pasteboard=paste", { post_id: post_id, title : jQuery("#pasteTitle").val(), x:coords[0],y:coords[1],w:coords[2],h:coords[3], imageData: imageData }, function(data){ 62 addImages(data); 63 }); 67 try { 68 var imageData = getCrop(coords[0],coords[1],coords[2],coords[3]); 69 jQuery("button").prop('disabled', true); 70 jQuery("#appendButton").text("Please Wait"); 71 jQuery.post( "../?pasteboard=paste", { post_id: post_id, title : jQuery("#pasteTitle").val(), x:coords[0],y:coords[1],w:coords[2],h:coords[3], imageData: imageData }, function(data){ 72 addImages(data); 73 }); 74 }catch(rootError) { 75 alert(rootError); 76 } 64 77 } 65 78 -
pasteboard/tags/2.0/print.php
r1191860 r1203766 3 3 /* 4 4 Plugin Name: PasteBoard 5 Version: 1. 05 Version: 1.1 6 6 Plugin URI: http://imagets.com 7 7 Description: You can paste all images from your desktop easily. Paste your snapshots all region from photoshop. No need to upload images, just paste to your editor. You can crop images before paste. … … 52 52 </div> 53 53 54 < divid="footer-menu">54 <form action="javascript:appendText()" method="post" id="footer-menu"> 55 55 <input id="pasteTitle" placeholder="Enter title for image"> 56 56 <button id="appendButton" class="btn-primary" onclick="appendText();">Add to text</button> 57 57 <button class="btn-danger" onclick="cancelPaste();">Cancel</button> 58 </ div>58 </form> 59 59 </div> 60 60 -
pasteboard/tags/2.0/readme.txt
r1191860 r1203766 1 === P lugin Name===1 === Pasteboard === 2 2 Tags: screenshot, copy paste, crop images 3 3 Requires at least: 4.0 … … 30 30 == Changelog == 31 31 32 = 1.2 [22/07/15] = 32 33 = 1.0 [11/06/15] = 33 34 * Initial version -
pasteboard/trunk/js/paste_popup.js
r1191860 r1203766 2 2 3 3 function onPasteProcess(){ 4 jQuery("#screenshot_paste").attr("src", paste);5 jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords});4 try { 5 jQuery("#screenshot_paste").attr("src", paste); 6 6 7 jQuery("#tabs li").each(function(){ 8 jQuery(this).click(function(){ 9 pasteboard_Tab(jQuery(this).attr("tab")); 7 try { 8 jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords}); 9 }catch(err) { 10 11 } 12 13 jQuery("#tabs li").each(function(){ 14 jQuery(this).click(function(){ 15 pasteboard_Tab(jQuery(this).attr("tab")); 16 }); 10 17 }); 11 });12 18 13 if(parseInt(readCookie('pasteboard_quality'))>0){ 14 jQuery("#pasteboard_quality").val(readCookie('pasteboard_quality')); 19 if(parseInt(readCookie('pasteboard_quality'))>0){ 20 jQuery("#pasteboard_quality").val(readCookie('pasteboard_quality')); 21 } 22 }catch(rootError) { 23 alert(rootError); 15 24 } 16 25 } … … 56 65 57 66 function appendText(){ 58 var imageData = getCrop(coords[0],coords[1],coords[2],coords[3]); 59 jQuery("button").prop('disabled', true); 60 jQuery("#appendButton").text("Please Wait"); 61 jQuery.post( "../?pasteboard=paste", { post_id: post_id, title : jQuery("#pasteTitle").val(), x:coords[0],y:coords[1],w:coords[2],h:coords[3], imageData: imageData }, function(data){ 62 addImages(data); 63 }); 67 try { 68 var imageData = getCrop(coords[0],coords[1],coords[2],coords[3]); 69 jQuery("button").prop('disabled', true); 70 jQuery("#appendButton").text("Please Wait"); 71 jQuery.post( "../?pasteboard=paste", { post_id: post_id, title : jQuery("#pasteTitle").val(), x:coords[0],y:coords[1],w:coords[2],h:coords[3], imageData: imageData }, function(data){ 72 addImages(data); 73 }); 74 }catch(rootError) { 75 alert(rootError); 76 } 64 77 } 65 78 -
pasteboard/trunk/print.php
r1191860 r1203766 3 3 /* 4 4 Plugin Name: PasteBoard 5 Version: 1. 05 Version: 1.1 6 6 Plugin URI: http://imagets.com 7 7 Description: You can paste all images from your desktop easily. Paste your snapshots all region from photoshop. No need to upload images, just paste to your editor. You can crop images before paste. … … 52 52 </div> 53 53 54 < divid="footer-menu">54 <form action="javascript:appendText()" method="post" id="footer-menu"> 55 55 <input id="pasteTitle" placeholder="Enter title for image"> 56 56 <button id="appendButton" class="btn-primary" onclick="appendText();">Add to text</button> 57 57 <button class="btn-danger" onclick="cancelPaste();">Cancel</button> 58 </ div>58 </form> 59 59 </div> 60 60 -
pasteboard/trunk/readme.txt
r1191860 r1203766 1 === P lugin Name===1 === Pasteboard === 2 2 Tags: screenshot, copy paste, crop images 3 3 Requires at least: 4.0 … … 30 30 == Changelog == 31 31 32 = 1.2 [22/07/15] = 32 33 = 1.0 [11/06/15] = 33 34 * Initial version
Note: See TracChangeset
for help on using the changeset viewer.