mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 14:36:08 -04:00
making PasteStatus testable, adding test for paste creation notification
This commit is contained in:
parent
e51aa7c80f
commit
6c8f57f91f
4 changed files with 42 additions and 8 deletions
|
@ -124,7 +124,7 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
|
|||
range = document.body.createTextRange();
|
||||
range.moveToElementText(element);
|
||||
range.select();
|
||||
} else if (window.getSelection){
|
||||
} else if (window.getSelection) {
|
||||
selection = window.getSelection();
|
||||
range = document.createRange();
|
||||
range.selectNodeContents(element);
|
||||
|
@ -302,8 +302,6 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
|
|||
* internationalization module
|
||||
*
|
||||
* @name I18n
|
||||
* @param {object} window
|
||||
* @param {object} document
|
||||
* @class
|
||||
*/
|
||||
var I18n = (function () {
|
||||
|
@ -1264,10 +1262,9 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
|
|||
* handles paste status/result
|
||||
*
|
||||
* @name PasteStatus
|
||||
* @param {object} window
|
||||
* @class
|
||||
*/
|
||||
var PasteStatus = (function (window) {
|
||||
var PasteStatus = (function () {
|
||||
var me = {};
|
||||
|
||||
var $pasteSuccess,
|
||||
|
@ -1410,7 +1407,7 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
|
|||
}
|
||||
|
||||
return me;
|
||||
})(window);
|
||||
})();
|
||||
|
||||
/**
|
||||
* password prompt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue