equal
deleted
inserted
replaced
275 } |
275 } |
276 </style> |
276 </style> |
277 <script type="text/javascript"> |
277 <script type="text/javascript"> |
278 addOnloadHook(function() |
278 addOnloadHook(function() |
279 { |
279 { |
280 $("div.halftone").get(0).style.pageBreakBefore = "auto"; |
280 var first_ht = $("div.halftone").get(0); |
|
281 if ( first_ht ) |
|
282 first_ht.style.pageBreakBefore = "auto"; |
281 $("select.halftone-key").change(function() |
283 $("select.halftone-key").change(function() |
282 { |
284 { |
283 var me = this; |
285 var me = this; |
284 var src = $(this.parentNode.parentNode).attr("halftone:src"); |
286 var src = $(this.parentNode.parentNode).attr("halftone:src"); |
285 ajaxPost(makeUrlNS("Special", "HalftoneRender", "transpose=" + $(this).val()) + "&tokey=" + $("option:selected", this).attr("halftone:abs"), "src=" + encodeURIComponent(src), function(ajax) |
287 ajaxPost(makeUrlNS("Special", "HalftoneRender", "transpose=" + $(this).val()) + "&tokey=" + $("option:selected", this).attr("halftone:abs"), "src=" + encodeURIComponent(src), function(ajax) |