Sha256: 161c8da04d809f86b9611f3d1c3e7986333550b2784048f42f056c14c55ec0c8

Contents?: true

Size: 960 Bytes

Versions: 18

Compression:

Stored size: 960 Bytes

Contents

jQuery(function($){
    var panel = $("#panel-post-visibility");
    var link_edit = panel.find(".edit-visibility").click(function(){
        panel.find(".panel-options").removeClass("hidden").show();
        link_edit.hide();
        return false;
    });
    panel.find(".lnk_hide").click(function(){
        panel.find(".panel-options").hide();
        link_edit.show();
        return false;
    });

    panel.find("input[name='post[visibility]']").change(function(){
        var label = $(this).closest("label");
        panel.find(".visibility_label").html(label.text());
        label.siblings("div").hide();
        label.next().show();
    }).click(function(){
        //var label = $(this).closest("label");
        //label.siblings("div").hide();
        //label.next().show();
    }).filter(":checked").trigger("change");

    var cal_input = $("#form-post").find('#published_from');
    cal_input.datetimepicker({format: 'YYYY-MM-DD HH:mm'});
});

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
camaleon_cms-2.4.2 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.4.1 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.4.0 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.3.7.2 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.3.7.1 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.3.7 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.3.6 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.3.5 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.3.4 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.1.2.1 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.3.3 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.3.2 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.3.1 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.3.0 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.2.1 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.2.0 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.1.2.0 app/apps/plugins/visibility_post/assets/js/form.js
camaleon_cms-2.1.1.4 app/apps/plugins/visibility_post/assets/js/form.js