(OFBIZ-10492) Replace text/javascript with application/javascript in all the script tag git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836886 13f79535-47bb-0310-9956-ffa450edef68
62 lines
2.3 KiB
Plaintext
62 lines
2.3 KiB
Plaintext
<#--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/sizzle.min.js</@ofbizContentUrl>"></script>
|
|
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/jQueryRotateCompressed.js</@ofbizContentUrl>"></script>
|
|
<style type="text/css">
|
|
td.cropbox span {
|
|
width: auto !important;
|
|
height: auto !important;
|
|
}
|
|
td.cropbox span canvas{
|
|
top : 10px !important;
|
|
left : 10px !important;
|
|
}
|
|
</style>
|
|
<script type="application/javascript">
|
|
jQuery.noConflict();
|
|
jQuery(document).ready(function(){
|
|
var angleHold = 0;
|
|
if((jQuery.browser.mozilla) || (jQuery.browser.msie)) {
|
|
var rot = jQuery('td.cropbox img').rotate(angleHold);
|
|
jQuery('#rotate-left').click(function(){
|
|
angleHold = angleHold - 45;
|
|
rot[0].rotate(angleHold);
|
|
jQuery('#ImageRotating_angle').val(angleHold);
|
|
});
|
|
jQuery('#rotate-right').click(function(){
|
|
angleHold = angleHold + 45;
|
|
rot[0].rotate(angleHold);
|
|
jQuery('#ImageRotating_angle').val(angleHold);
|
|
});
|
|
} else {
|
|
var rot = jQuery('td.cropbox img');
|
|
jQuery('#rotate-left').click(function(){
|
|
angleHold = angleHold - 45;
|
|
rot.rotate(angleHold);
|
|
jQuery('#ImageRotating_angle').val(angleHold);
|
|
});
|
|
jQuery('#rotate-right').click(function(){
|
|
angleHold = angleHold + 45;
|
|
rot.rotate(angleHold);
|
|
jQuery('#ImageRotating_angle').val(angleHold);
|
|
});
|
|
}
|
|
});
|
|
</script>
|