Subversion Repositories DevTools

Rev

Rev 6626 | Rev 6650 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6626 Rev 6641
Line 413... Line 413...
413
        duration: 2000,
413
        duration: 2000,
414
    }
414
    }
415
    $.extend(opts, options);
415
    $.extend(opts, options);
416
 
416
 
417
    var $temp = $("<textarea>");
417
    var $temp = $("<textarea>");
418
    $("body").append($temp);
418
    $("body").prepend($temp);
419
    $temp.val(txt).select();
419
    $temp.val(txt).select();
420
    document.execCommand("copy");
420
    document.execCommand("copy");
421
    $temp.remove();
421
    $temp.remove();
422
 
422
 
423
    if ( opts.notify ) {
423
    if ( opts.notify ) {
424
        vixConfirm(opts.note, {
424
        vixConfirm(opts.note, {
425
            title: opts.title,
425
            title: opts.title,
426
            icon : "images/i_info.png", 
426
            icon : "images/i_info.png",
427
            cancel: false, 
427
            cancel: false,
428
            button: null,
428
            button: null,
429
            timeout : opts.timeout,
429
            timeout : opts.timeout,
430
            not_on_firefox_position : {my: 'center', at: 'top', of: event},
-
 
431
            modal : false,
430
            modal : false,
432
            minHeight: 10, 
431
            minHeight: 10,
433
            hide: { effect: 'fade', duration: opts.duration }
432
            hide: { effect: 'fade', duration: opts.duration }
434
            });
433
            });
435
    }
434
    }
436
}
435
}
437
 
436