From 497ae466ee0ea3c1dfc95668ab24b7e751565d8f Mon Sep 17 00:00:00 2001 From: Florian BLOUET Date: Thu, 11 Jun 2015 18:54:48 +0200 Subject: [PATCH] Removed videos representation screenshots disabled features --- .../web/prod/actions/Tools/index.html.twig | 138 ------------------ 1 file changed, 138 deletions(-) diff --git a/templates/web/prod/actions/Tools/index.html.twig b/templates/web/prod/actions/Tools/index.html.twig index ee931b9d74..2372cd78cf 100644 --- a/templates/web/prod/actions/Tools/index.html.twig +++ b/templates/web/prod/actions/Tools/index.html.twig @@ -138,9 +138,6 @@
- {#
- -
#}
@@ -153,75 +150,10 @@
- {# disabled editing actions -
-
- -
-
- -
-
- -
-
- -
-
- #} -
- - - - -
@@ -440,38 +372,8 @@ $(document).ready(function(){ }); if(ThumbEditor.isSupported()) { - $("#slider-brightness", scope).slider({ - slide: function() { - $("#value-brightness").val(Math.round($("#slider-brightness").slider("value") / 100 * 300) - 150); - } - }).slider( "option", "value", 50); - - $("#slider-contrast").slider({ - slide: function() { - $("#value-contrast").val( - ( - ( - $("#slider-contrast").slider("value") / 100 * 4 - ) - -1 - ).toFixed(1)); - } - }).slider( "option", "value", 1/3*100); var sliderWrapper = $("#thumb_wrapper", scope); - /*$("#thumb_reset_button",scope).bind("click", function(){ - var curImg = sliderWrapper.find(".selected"); - var id = curImg.attr("id").split("_").pop(); - var originalScreenShot = ThumbEditor.store.get(id); - var newImg = $(""); - - curImg.after(newImg).remove(); - - newImg - .attr("id", "#working_"+ id) - .attr("src", originalScreenShot.getDataURI()) - .trigger("click"); - });*/ $("#thumb_delete_button", scope).bind("click", function(){ var img = sliderWrapper.find(".selected"); @@ -503,46 +405,6 @@ $(document).ready(function(){ $(this).closest(".action_frame").hide(); }); - $("#flipV", scope).bind("click", function(){ - Pixastic.process($("#thumb_canvas").get(0), - "flipv", - null, - function(canvas){$("#thumb_canvas").trigger("tool_event");} - ); - }); - - $("#flipH", scope).bind("click", function(){ - Pixastic.process($("#thumb_canvas").get(0), - "fliph", - null, function(canvas){$("#thumb_canvas").trigger("tool_event");} - ); - }); - - $("#brightness", scope).bind("click", function(){ - $("#action_frame_brightness", scope).show(); - $("#action_frame_contrast", scope).hide(); - }); - - $("#contrast", scope).bind("click", function(){ - $("#action_frame_brightness", scope).hide(); - $("#action_frame_contrast", scope).show(); - }); - - $(".apply-brightness", scope).bind("click", function(){ - Pixastic.process($("#thumb_canvas").get(0), "brightness", { - brightness: $("#value-brightness").val(), - contrast: $("#value-contrast").val(), - legacy: false - }, null, function(canvas){$("#thumb_canvas").trigger("tool_event");}); - }); - - $(".apply-contrast").bind("click", function(){ - Pixastic.process($("#thumb_canvas").get(0), "brightness", { - brightness: $("#value-brightness").val(), - contrast: $("#value-contrast").val(), - legacy: false - }, null, function(canvas){$("#thumb_canvas").trigger("tool_event");}); - }); $("img", sliderWrapper).live("click", function(){ $('.selected', sliderWrapper).removeClass('selected');