Plugin Directory

Changeset 1203766


Ignore:
Timestamp:
07/22/2015 08:27:40 AM (11 years ago)
Author:
imagets
Message:

tagging version 1.1

Location:
pasteboard
Files:
12 edited
3 copied

Legend:

Unmodified
Added
Removed
  • pasteboard/tags/1.1/js/paste_popup.js

    r1191860 r1203766  
    22
    33function onPasteProcess(){
    4     jQuery("#screenshot_paste").attr("src", paste);
    5     jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords});
     4    try {
     5        jQuery("#screenshot_paste").attr("src", paste);
    66
    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            });
    1017        });
    11     });
    1218
    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);
    1524    }
    1625}
     
    5665
    5766function 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    }
    6477}
    6578
  • pasteboard/tags/1.1/print.php

    r1191860 r1203766  
    33/*
    44Plugin Name: PasteBoard
    5 Version: 1.0
     5Version: 1.1
    66Plugin URI: http://imagets.com
    77Description: 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.
     
    5252                        </div>
    5353
    54                         <div id="footer-menu">
     54                        <form action="javascript:appendText()" method="post" id="footer-menu">
    5555                            <input id="pasteTitle" placeholder="Enter title for image">
    5656                            <button id="appendButton" class="btn-primary" onclick="appendText();">Add to text</button>
    5757                            <button class="btn-danger" onclick="cancelPaste();">Cancel</button>
    58                         </div>
     58                        </form>
    5959                    </div>
    6060
  • pasteboard/tags/1.1/readme.txt

    r1191860 r1203766  
    1 === Plugin Name ===
     1=== Pasteboard ===
    22Tags: screenshot, copy paste, crop images
    33Requires at least: 4.0
     
    3030== Changelog ==
    3131
     32= 1.2 [22/07/15] =
    3233= 1.0 [11/06/15] =
    3334* Initial version
  • pasteboard/tags/1.2/js/paste_popup.js

    r1191860 r1203766  
    22
    33function onPasteProcess(){
    4     jQuery("#screenshot_paste").attr("src", paste);
    5     jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords});
     4    try {
     5        jQuery("#screenshot_paste").attr("src", paste);
    66
    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            });
    1017        });
    11     });
    1218
    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);
    1524    }
    1625}
     
    5665
    5766function 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    }
    6477}
    6578
  • pasteboard/tags/1.2/print.php

    r1191860 r1203766  
    33/*
    44Plugin Name: PasteBoard
    5 Version: 1.0
     5Version: 1.1
    66Plugin URI: http://imagets.com
    77Description: 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.
     
    5252                        </div>
    5353
    54                         <div id="footer-menu">
     54                        <form action="javascript:appendText()" method="post" id="footer-menu">
    5555                            <input id="pasteTitle" placeholder="Enter title for image">
    5656                            <button id="appendButton" class="btn-primary" onclick="appendText();">Add to text</button>
    5757                            <button class="btn-danger" onclick="cancelPaste();">Cancel</button>
    58                         </div>
     58                        </form>
    5959                    </div>
    6060
  • pasteboard/tags/1.2/readme.txt

    r1191860 r1203766  
    1 === Plugin Name ===
     1=== Pasteboard ===
    22Tags: screenshot, copy paste, crop images
    33Requires at least: 4.0
     
    3030== Changelog ==
    3131
     32= 1.2 [22/07/15] =
    3233= 1.0 [11/06/15] =
    3334* Initial version
  • pasteboard/tags/2.0/js/paste_popup.js

    r1191860 r1203766  
    22
    33function onPasteProcess(){
    4     jQuery("#screenshot_paste").attr("src", paste);
    5     jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords});
     4    try {
     5        jQuery("#screenshot_paste").attr("src", paste);
    66
    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            });
    1017        });
    11     });
    1218
    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);
    1524    }
    1625}
     
    5665
    5766function 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    }
    6477}
    6578
  • pasteboard/tags/2.0/print.php

    r1191860 r1203766  
    33/*
    44Plugin Name: PasteBoard
    5 Version: 1.0
     5Version: 1.1
    66Plugin URI: http://imagets.com
    77Description: 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.
     
    5252                        </div>
    5353
    54                         <div id="footer-menu">
     54                        <form action="javascript:appendText()" method="post" id="footer-menu">
    5555                            <input id="pasteTitle" placeholder="Enter title for image">
    5656                            <button id="appendButton" class="btn-primary" onclick="appendText();">Add to text</button>
    5757                            <button class="btn-danger" onclick="cancelPaste();">Cancel</button>
    58                         </div>
     58                        </form>
    5959                    </div>
    6060
  • pasteboard/tags/2.0/readme.txt

    r1191860 r1203766  
    1 === Plugin Name ===
     1=== Pasteboard ===
    22Tags: screenshot, copy paste, crop images
    33Requires at least: 4.0
     
    3030== Changelog ==
    3131
     32= 1.2 [22/07/15] =
    3233= 1.0 [11/06/15] =
    3334* Initial version
  • pasteboard/trunk/js/paste_popup.js

    r1191860 r1203766  
    22
    33function onPasteProcess(){
    4     jQuery("#screenshot_paste").attr("src", paste);
    5     jQuery('#screenshot_paste').Jcrop({onSelect: updateCoords});
     4    try {
     5        jQuery("#screenshot_paste").attr("src", paste);
    66
    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            });
    1017        });
    11     });
    1218
    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);
    1524    }
    1625}
     
    5665
    5766function 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    }
    6477}
    6578
  • pasteboard/trunk/print.php

    r1191860 r1203766  
    33/*
    44Plugin Name: PasteBoard
    5 Version: 1.0
     5Version: 1.1
    66Plugin URI: http://imagets.com
    77Description: 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.
     
    5252                        </div>
    5353
    54                         <div id="footer-menu">
     54                        <form action="javascript:appendText()" method="post" id="footer-menu">
    5555                            <input id="pasteTitle" placeholder="Enter title for image">
    5656                            <button id="appendButton" class="btn-primary" onclick="appendText();">Add to text</button>
    5757                            <button class="btn-danger" onclick="cancelPaste();">Cancel</button>
    58                         </div>
     58                        </form>
    5959                    </div>
    6060
  • pasteboard/trunk/readme.txt

    r1191860 r1203766  
    1 === Plugin Name ===
     1=== Pasteboard ===
    22Tags: screenshot, copy paste, crop images
    33Requires at least: 4.0
     
    3030== Changelog ==
    3131
     32= 1.2 [22/07/15] =
    3233= 1.0 [11/06/15] =
    3334* Initial version
Note: See TracChangeset for help on using the changeset viewer.