Sha256: 6e827c31766906cf99b13b9e4b8fc5999893277d868c53ecbe02f929fe7887e3

Contents?: true

Size: 1.76 KB

Versions: 3

Compression:

Stored size: 1.76 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1375908458.893631:@value"¡{I"
class:EFI"ProcessedAsset;FI"logical_path;FI"lentil/buttonhandler.js;TI"
pathname;FI"[/Users/jmcasden/Code/MHL-vagrant/lentil/app/assets/javascripts/lentil/buttonhandler.js;TI"content_type;FI"application/javascript;FI"
mtime;FI"2013-05-10T16:29:04-04:00;FI"length;FioI"digest;F"%c70c589f2fba86efec091d7198d18fc2I"source;FI"ofunction buttonhandler() {

    $(".like-btn, .flag-confirm").click(function(e) {
        button = $(this);
        imageId = $(".fancybox-overlay, .fancybox-mobile, .image-show").attr("id");

        if (!$(button).is(".already-clicked")) {
            url = $(button).attr("href");
            $.post(url, function() {
                $(button).addClass("already-clicked");
                $("#" + imageId + " .text-overlay").find(".initial-state").addClass("already-clicked");
            });
        }

        if ($(button).is(".like-btn")) {
            $("#" + imageId + " .like-btn").toggle();
        } else if ($(button).is(".flag-confirm")) {
            $("#" + imageId + " .flag-btn.initial-state").remove();
            $("#" + imageId + " .flag-btn.secondary-state").show();
            $('.modal').modal('hide');
        }
        e.preventDefault();
    });
}
;
;FI"dependency_digest;F"%aaee0e1df8e3f46926f97e94d2505d65I"required_paths;F[I"[/Users/jmcasden/Code/MHL-vagrant/lentil/app/assets/javascripts/lentil/buttonhandler.js;TI"dependency_paths;F[{I"	path;FI"[/Users/jmcasden/Code/MHL-vagrant/lentil/app/assets/javascripts/lentil/buttonhandler.js;TI"
mtime;FI"2013-05-10T16:29:04-04:00;FI"digest;F"%d0328a391a9213e8aaaa13623c18ff93I"
_version;F"%ffd318ca8b794f42f5029101c2cf5d91

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lentil-0.1.3 test/dummy/tmp/cache/assets/D8D/C10/sprockets%2F21e4f0ab71e229f32db06ad7bebe4706
lentil-0.1.2 test/dummy/tmp/cache/assets/D8D/C10/sprockets%2F21e4f0ab71e229f32db06ad7bebe4706
lentil-0.1.1 test/dummy/tmp/cache/assets/D8D/C10/sprockets%2F21e4f0ab71e229f32db06ad7bebe4706