Improved: Use application/javascript instead of text/javascript

(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
This commit is contained in:
Deepak Dixit
2018-07-28 10:51:52 +00:00
parent ec859eb0ca
commit ef0c694a46
106 changed files with 172 additions and 172 deletions
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
<!--
function toggleInvoiceId(master) {
var form = document.listSalesInvoices;
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
<!--
function toggleInvoiceId(master) {
var invoices = jQuery("#listPurchaseInvoices :checkbox[name='invoiceIds']");
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
//<![CDATA[
function toggleInvoiceId(master) {
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
//<![CDATA[
function togglePaymentId(master) {
var payments = jQuery("#paymentBatchForm :checkbox[name='paymentIds']");
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function togglefinAccountTransId(master) {
var form = document.selectAllForm;
var finAccountTransList = form.elements.length;
@@ -218,7 +218,7 @@ function getFinAccountTransRunningTotalAndBalances() {
</#list>
</table>
</div>
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready( function() {
jQuery("#displayPayments_${finAccountTrans.finAccountTransId}").dialog({autoOpen: false, modal: true,
buttons: {
@@ -196,7 +196,7 @@ under the License.
<td align="center">
<a id="toggleGlTransactions_${finAccountTrans.finAccountTransId}" href="javascript:void(0)" class="buttontext">${uiLabelMap.FormFieldTitle_glTransactions}</a>
<#include "ShowGlTransactions.ftl"/>
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready( function() {
jQuery("#displayGlTransactions_${finAccountTrans.finAccountTransId}").dialog({autoOpen: false, modal: true,
buttons: {
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function togglePaymentId(master) {
var form = document.depositWithdrawPaymentsForm;
var payments = form.elements.length;
@@ -44,7 +44,7 @@ under the License.
<#if "PRDS_PAY_RELEASE" == txType?default("")>
<tr><td>
${setRequestAttribute("validTx", "true")}
<script type="text/javascript">
<script type="application/javascript">
<!-- //
document.manualTxForm.action = "<@ofbizUrl>processReleaseTransaction</@ofbizUrl>";
// -->
@@ -54,7 +54,7 @@ under the License.
<#if "PRDS_PAY_REFUND" == txType?default("")>
<tr><td>
${setRequestAttribute("validTx", "true")}
<script type="text/javascript">
<script type="application/javascript">
<!-- //
document.manualTxForm.action = "<@ofbizUrl>processRefundTransaction</@ofbizUrl>";
// -->
@@ -64,7 +64,7 @@ under the License.
<#if "PRDS_PAY_CREDIT" == txType?default("") || "PRDS_PAY_AUTH" == txType?default("")>
<tr><td>
${setRequestAttribute("validTx", "true")}
<script type="text/javascript">
<script type="application/javascript">
<!-- //
document.manualTxForm.action = "<@ofbizUrl>processManualCcTx</@ofbizUrl>";
// -->
@@ -694,7 +694,7 @@ public class DataResourceWorker implements org.apache.ofbiz.widget.content.Data
// if use web analytics.
if (UtilValidate.isNotEmpty(webAnalytics)) {
StringBuffer newTemplateText = new StringBuffer(templateText);
String webAnalyticsCode = "<script type=\"text/javascript\">";
String webAnalyticsCode = "<script type=\"application/javascript\">";
for (GenericValue webAnalytic : webAnalytics) {
StringWrapper wrapString = StringUtil.wrapString((String) webAnalytic.get("webAnalyticsCode"));
webAnalyticsCode += wrapString.toString();
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function call_fieldlookup4(rootForumId, parentForumId ) {
var obj_lookupwindow = window.open("addSubSite?rootForumId=" + rootForumId + "&amp;parentForumId=" + parentForumId, 'FieldLookup', 'width=500,height=250,scrollbars=yes,status=no,top='+my+',left='+mx+',dependent=yes,alwaysRaised=yes');
obj_lookupwindow.opener = window;
@@ -261,7 +261,7 @@ function call_fieldlookup4(rootForumId, parentForumId ) {
</tr>
</table>
<script type="text/javascript">
<script type="application/javascript">
function call_fieldlookup3(view_name) {
window.target = document.siteRoleForm.partyId_o_${rowCount - 1};
var obj_lookupwindow = window.open(view_name,'FieldLookup', 'width=700,height=550,scrollbars=yes,status=no,top='+my+',left='+mx+',dependent=yes,alwaysRaised=yes');
@@ -16,7 +16,7 @@
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
<script type="application/javascript">
<#-- some labels are not unescaped in the JSON object so we have to do this manuely -->
@@ -17,7 +17,7 @@
under the License.
-->
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
<script type="application/javascript">
<#-- some labels are not unescaped in the JSON object so we have to do this manuely -->
@@ -16,7 +16,7 @@
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
<script type="application/javascript">
<#-- some labels are not unescaped in the JSON object so we have to do this manuely -->
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function call_fieldlookup3(view_name) {
var obj_lookupwindow = window.open(view_name + "?webSitePublishPoint=" + webSitePublishPoint,'FieldLookup', 'width=700,height=550,scrollbars=yes,status=no,top='+my+',left='+mx+',dependent=yes,alwaysRaised=yes');
obj_lookupwindow.opener = window;
@@ -17,7 +17,7 @@
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
// save new content id to JS scope so it can be used by the jstree in
// the WebSiteCmsNav view where the newContentId is not available
var newContentId = "${contentId?default("'a'")}";
@@ -16,15 +16,15 @@
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/jquery/ui/js/jquery.cookie-1.4.0.js</@ofbizContentUrl>"></script>
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/elrte-1.3/js/elrte.min.js</@ofbizContentUrl>"></script>
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/jquery/ui/js/jquery.cookie-1.4.0.js</@ofbizContentUrl>"></script>
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/elrte-1.3/js/elrte.min.js</@ofbizContentUrl>"></script>
<#if language?has_content && language != "en">
<script src="<@ofbizContentUrl>/common/js/jquery/plugins/elrte-1.3/js/i18n/elrte.${language!"en"}.js</@ofbizContentUrl>" type="text/javascript"></script><#rt/>
<script src="<@ofbizContentUrl>/common/js/jquery/plugins/elrte-1.3/js/i18n/elrte.${language!"en"}.js</@ofbizContentUrl>" type="application/javascript"></script><#rt/>
</#if>
<link href="/common/js/jquery/plugins/elrte-1.3/css/elrte.min.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
<script type="application/javascript">
function modifyJstreeCookieToSelectNewPage() {
// core.initally_load and ui.initially_select don't work with the cookies plugin,
// so we have to modify the cookie to achieve the same.
@@ -123,7 +123,7 @@ under the License.
</#if>
</div>
<#if parameters.hideFields?default("N") != "Y">
<script type="text/javascript">
<script type="application/javascript">
<!--//
document.lookupparty.partyId.focus();
//-->
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
<#-- some labels are not unescaped in the JSON object so we have to do this manualy -->
function unescapeHtmlText(text) {
return jQuery('<div />').html(text).text()
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
$("#dialog").dialog('open');
$(function() {
$( "#internalOrg" ).dialog({ autoOpen: true, width: 350});
@@ -20,7 +20,7 @@ under the License.
<#if partyGroup?has_content>
<#assign partyname = partyGroup.groupName!/>
</#if>
<script type="text/javascript">
<script type="application/javascript">
<!--
var answer = confirm ("Are you sure you want to remove '<#if partyname??>${partyname}<#else>${parameters.partyId!}</#if>'?")
if (answer)
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
<!-- //
function lookupBom() {
document.searchbom.productId.value=document.editProductAssocForm.productId.value;
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
<!-- //
function lookupInventory() {
document.lookupinventory.submit();
@@ -93,7 +93,7 @@ function lookupInventory() {
</div>
<#if requestParameters.hideFields?default("N") != "Y">
<script type="text/javascript">
<script type="application/javascript">
<!--//
document.lookupinventory.productId.focus();
//-->
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
<!-- //
function copyAndAddRoutingTask() {
document.addtaskassocform.copyTask.value = "Y";
@@ -181,7 +181,7 @@ if (inlineProduct) {
if (variantTree && imageMap) {
jsBuf = new StringBuffer()
jsBuf.append("<script type=\"text/javascript\">")
jsBuf.append("<script type=\"application/javascript\">")
jsBuf.append("var DET" + inlineCounter + "= new Array(" + variantTree.size() + ");")
jsBuf.append("var IMG" + inlineCounter + " = new Array(" + variantTree.size() + ");")
jsBuf.append("var OPT" + inlineCounter + " = new Array(" + featureOrder.size() + ");")
@@ -310,7 +310,7 @@ if (product) {
if (variantTree && imageMap) {
jsBuf = new StringBuffer()
jsBuf.append("<script type=\"text/javascript\">")
jsBuf.append("<script type=\"application/javascript\">")
jsBuf.append("var DET = new Array(" + variantTree.size() + ");")
jsBuf.append("var IMG = new Array(" + variantTree.size() + ");")
jsBuf.append("var OPT = new Array(" + featureOrder.size() + ");")
@@ -506,7 +506,7 @@ if (product) {
if(isAlternativePacking){
// get alternative product price when product doesn't have any feature
jsBuf = new StringBuffer()
jsBuf.append("<script type=\"text/javascript\">")
jsBuf.append("<script type=\"application/javascript\">")
// make a list of variant sku with requireAmount
virtualVariantsRes = runService('getAssociatedProducts', [productIdTo : productId, type : "ALTERNATIVE_PACKAGE", checkViewAllow : true, prodCatalogId : categoryId])
@@ -154,7 +154,7 @@ if (product) {
// get alternative product price when product doesn't have any feature
jsBuf = new StringBuffer()
jsBuf.append("<script type=\"text/javascript\">")
jsBuf.append("<script type=\"application/javascript\">")
// make a list of variant sku with requireAmount
virtualVariantsRes = runService('getAssociatedProducts', [productIdTo : productId, type : "ALTERNATIVE_PACKAGE", checkViewAllow : true, prodCatalogId : categoryId])
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
//<![CDATA[
function shipBillAddr() {
if (document.checkoutsetupform.useShipAddr.checked) {
@@ -452,7 +452,7 @@ function makeExpDate() {
<#else>
<#-- initial screen show a list of options -->
<script type="text/javascript">
<script type="application/javascript">
function setCheckoutPaymentId( selectedValue ) {
checkoutForm = document.getElementById('checkoutsetupform');
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
//<![CDATA[
function submitForm(form, mode, value) {
if ("DN" == mode) {
@@ -19,7 +19,7 @@ under the License.
<!-- TODO : Need formatting -->
<script type="text/javascript">
<script type="application/javascript">
//<![CDATA[
function submitForm(form, mode, value) {
if ("DN" == mode) {
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
//<![CDATA[
function submitForm(form, mode, value) {
if ("DN" == mode) {
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready(function(){
jQuery('#shipToSameParty, #shipToOtherParty').change(function(){
if(jQuery('#shipToSameParty').is(':checked')){
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
//<![CDATA[
function submitForm(form, mode, value) {
if ("DN" == mode) {
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function removeSelected() {
var cform = document.cartform;
cform.removeSelected.value = true;
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function showQohAtp() {
document.qohAtpForm.productId.value = document.quickaddform.add_product_id.value;
document.qohAtpForm.submit();
@@ -194,7 +194,7 @@ under the License.
</div>
</div>
<script type="text/javascript">
<script type="application/javascript">
document.quickaddform.add_product_id.focus();
</script>
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function callDocumentByPaginate(info) {
var str = info.split('~');
var checkUrl = '<@ofbizUrl>categoryAjaxFired</@ofbizUrl>';
@@ -23,7 +23,7 @@ under the License.
<#-- virtual product javascript -->
${virtualJavaScript!}
<script type="text/javascript">
<script type="application/javascript">
<!--
var detailImageUrl = null;
function setAddProductId(name) {
@@ -135,7 +135,7 @@ ${virtualJavaScript!}
//-->
</script>
<script type="text/javascript">
<script type="application/javascript">
<!--
jQuery(document).ready( function() {
@@ -379,7 +379,7 @@ function getConfigDetails() {
</div>
<#-- Prefill first select box (virtual products only) -->
<#if variantTree?? && 0 < variantTree.size()>
<script type="text/javascript">eval("list" + "${featureOrderFirst}" + "()");</script>
<script type="application/javascript">eval("list" + "${featureOrderFirst}" + "()");</script>
</#if>
<#-- Swatches (virtual products only) -->
@@ -21,7 +21,7 @@ ${virtualJavaScript!}
<#assign addedJavaScript = requestAttributes.addedJavaScript?default("N")/>
<#if ("N" == addedJavaScript)>
${setRequestAttribute("addedJavaScript", "Y")}
<script type="text/javascript">
<script type="application/javascript">
function popupDetailInline(inlineCounter) {
var imageField = 'detailImage' + inlineCounter;
@@ -231,7 +231,7 @@ ${virtualJavaScript!}
</#if>
<#if "VV_FEATURETREE" == product.virtualVariantMethodEnum! && featureLists?has_content>
<script type="text/javascript">
<script type="application/javascript">
function checkRadioButtoninline${inlineCounter}(inlineCounter, productId) {
var add_product_id = 'add_product_id' + inlineCounter;
<#list featureLists as featureList>
@@ -349,7 +349,7 @@ ${virtualJavaScript!}
<tr><td COLSPAN="2" align="right">
<#if variantTree?? && 0 < variantTree.size()>
<script type="text/javascript">eval("list"+ "${inlineCounter}" + "${featureOrderFirst}" + "()");</script>
<script type="application/javascript">eval("list"+ "${inlineCounter}" + "${featureOrderFirst}" + "()");</script>
</#if>
</td>
@@ -22,7 +22,7 @@ under the License.
<#-- virtual product javascript -->
${virtualJavaScript!}
<script type="text/javascript">
<script type="application/javascript">
<!--
var detailImageUrl = null;
function setAddProductId(name) {
@@ -586,7 +586,7 @@ ${virtualJavaScript!}
</div>
<#-- Prefill first select box (virtual products only) -->
<#if variantTree?? && 0 < variantTree.size()>
<script type="text/javascript">eval("list" + "${featureOrderFirst}" + "()");</script>
<script type="application/javascript">eval("list" + "${featureOrderFirst}" + "()");</script>
</#if>
<#-- Swatches (virtual products only) -->
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
${virtualJavaScript!}
<script type="text/javascript">
<script type="application/javascript">
<!--
function displayProductVirtualId(variantId, virtualProductId, pForm) {
if(variantId){
@@ -93,7 +93,7 @@ ${virtualJavaScript!}
</tr>
</table>
</div>
<script type="text/javascript">
<script type="application/javascript">
jQuery("#${productInfoLinkId}").attr('title', jQuery("#${productDetailId}").remove().html());
jQuery("#${productInfoLinkId}").tooltip({
content: function(){
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function quicklookup(element) {
window.location='<@ofbizUrl>LookupBulkAddSupplierProductsInApprovedOrder</@ofbizUrl>?orderId='+element.value;
}
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
<!-- //
function lookupOrders(click) {
orderIdValue = document.lookuporder.orderId.value;
@@ -461,7 +461,7 @@ function toggleOrderIdList() {
<input type="image" src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" onclick="javascript:lookupOrders(true);"/>
</form>
<#if requestParameters.hideFields?default("N") != "Y">
<script type="text/javascript">
<script type="application/javascript">
<!--//
document.lookuporder.orderId.focus();
//-->
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready( function() {
jQuery('#allcheck').change( function() {
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function editInstruction(shipGroupSeqId) {
jQuery('#shippingInstructions_' + shipGroupSeqId).css({display:'block'});
jQuery('#saveInstruction_' + shipGroupSeqId).css({display:'inline'});
@@ -426,7 +426,7 @@ under the License.
<td>
<input type="submit" value="${uiLabelMap.CommonUpdate}" class="smallSubmit"/>
<a class="buttontext" id="newShippingAddress" href="javascript:void(0);">${uiLabelMap.OrderNewShippingAddress}</a>
<script type="text/javascript">
<script type="application/javascript">
jQuery("#newShippingAddress").click(function(){jQuery("#newShippingAddressForm").dialog("open")});
</script>
</td>
@@ -494,7 +494,7 @@ under the License.
</div>
</form>
</div>
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready( function() {
jQuery("#newShippingAddressForm").dialog({autoOpen: false, modal: true,
buttons: {
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
<!-- //
function viewOrder(form) {
if (form.taskStatus.value == "WF_NOT_STARTED") {
@@ -57,7 +57,7 @@ under the License.
<div id='progress_bar'><div></div></div>
</div>
</div>
<script type="text/javascript">
<script type="application/javascript">
jQuery("#uploadPartyContent").validate({
submitHandler: function(form) {
<#-- call upload scripts - functions defined in PartyProfileContent.js -->
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
<#-- some labels are not unescaped in the JSON object so we have to do this manualy -->
function unescapeHtmlText(text) {
return jQuery('<div />').html(text).text()
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function insertImageName(type,nameValue) {
eval('document.productCategoryForm.' + type + 'ImageUrl.value=nameValue;');
};
@@ -202,7 +202,7 @@ function insertImageName(type,nameValue) {
</div>
</div>
<#if productCategoryId?has_content>
<script type="text/javascript">
<script type="application/javascript">
function setUploadUrl(newUrl) {
var toExec = 'document.imageUploadForm.action="' + newUrl + '";';
eval(toExec);
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function insertNowTimestamp(field) {
eval('document.productForm.' + field + '.value="${nowTimestamp?string}";');
}
@@ -34,7 +34,7 @@ under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
<!--
function markAsAccepted() {
document.Labels.action = "<@ofbizUrl>BatchUpdateShipmentRouteSegments?facilityId=${parameters.facilityId}</@ofbizUrl>";
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function quicklookup(func, locationelement, facilityelement, productelement) {
var productId = productelement.value;
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function paginateOrderList(viewSize, viewIndex) {
document.paginationForm.viewSize.value = viewSize;
document.paginationForm.viewIndex.value = viewIndex;
@@ -32,7 +32,7 @@ under the License.
</#if>
<#if productIds?has_content>
<script type="text/javascript">
<script type="application/javascript">
function checkProductToBagTextArea(field, idValue) {
fullValue = idValue + "\n";
tempStr = document.forms["quickCreateVirtualWithVariants"].elements["variantProductIdsBag"].value;
@@ -18,7 +18,7 @@ under the License.
-->
<#if (requestAttributes.uiLabelMap)??><#assign uiLabelMap = requestAttributes.uiLabelMap></#if>
<script type="text/javascript">
<script type="application/javascript">
//<![CDATA[
function changeCategory() {
document.forms["keywordsearchform"].elements["SEARCH_CATEGORY_ID"].value=document.forms["advancedsearchform"].elements["DUMMYCAT"].value;
@@ -16,10 +16,10 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/sizzle.min.js</@ofbizContentUrl>"></script>
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/jquery.Jcrop.min.js</@ofbizContentUrl>"></script>
<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/jquery.Jcrop.min.js</@ofbizContentUrl>"></script>
<link rel="stylesheet" href="<@ofbizContentUrl>/common/js/plugins/imagemanagement/jquery.Jcrop.css</@ofbizContentUrl>" type="text/css" />
<script type="text/javascript">
<script type="application/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('td.cropbox img').Jcrop({
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
jQuery.noConflict();
var host = document.location.host;
jQuery(document).ready(function() {
@@ -16,8 +16,8 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/sizzle.min.js</@ofbizContentUrl>"></script>
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/jQueryRotateCompressed.js</@ofbizContentUrl>"></script>
<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;
@@ -28,7 +28,7 @@ under the License.
left : 10px !important;
}
</style>
<script type="text/javascript">
<script type="application/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
var angleHold = 0;
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<#assign contentURL = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("url", "content.url.prefix.standard", delegator)>
<script type="text/javascript">
<script type="application/javascript">
$(document).ready(function(){
var form = document.ImageShare;
var protocol = document.location.protocol;
@@ -16,8 +16,8 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/sizzle.min.js</@ofbizContentUrl>"></script>
<script type="text/javascript">
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/sizzle.min.js</@ofbizContentUrl>"></script>
<script type="application/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('img').attr('id',"previewImage");
@@ -16,8 +16,8 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/sizzle.min.js</@ofbizContentUrl>"></script>
<script type="text/javascript">
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/sizzle.min.js</@ofbizContentUrl>"></script>
<script type="application/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('input:radio').click(function(){
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function setNow(field) { eval('document.selectAllForm.' + field + '.value="${nowTimestamp}"'); }
</script>
<div class="page-title">${title}</div>
@@ -280,7 +280,7 @@ under the License.
<td colspan="2"><input type="submit" value="${uiLabelMap.CommonReceive}" /></td>
</tr>
</table>
<script type="text/javascript">
<script type="application/javascript">
document.selectAllForm.quantityAccepted.focus();
</script>
</form>
@@ -45,7 +45,7 @@ under the License.
<input type="hidden" name="inventoryTransferId" value="${inventoryTransferId!}" />
</#if>
<script type="text/javascript">
<script type="application/javascript">
function setNow(field) { eval('document.transferform.' + field + '.value="${nowTimestamp}"'); }
</script>
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready( function() {
<#if 0 < productPriceConds.size()>
<#list 0..productPriceConds.size()-1 as i>
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<#if product??>
<script type="text/javascript">
<script type="application/javascript">
function insertNowTimestamp(field) {
eval('document.productForm.' + field + '.value="${nowTimestampString}";');
};
@@ -177,7 +177,7 @@ under the License.
</tr>
</table>
</form>
<script type="text/javascript">
<script type="application/javascript">
function setUploadUrl(newUrl) {
var toExec = 'document.imageUploadForm.action="' + newUrl + '";';
eval(toExec);
@@ -32,7 +32,7 @@ under the License.
<input type="hidden" name="productId" value="${product.productId!}"/>
<input type="hidden" name="productFeatureTypeId" value=""/>
</form>
<script type="text/javascript">
<script type="application/javascript">
function removeAssoc(productIdTo, fromDate) {
if (confirm("Are you sure you want to remove the association of " + productIdTo + "?")) {
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function setProductVariantId(e, value, fieldname) {
var cform = document.selectAllForm;
var len = cform.elements.length;
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function paginateOrderList(viewSize, viewIndex) {
document.paginationForm.viewSize.value = viewSize;
document.paginationForm.viewIndex.value = viewIndex;
@@ -268,7 +268,7 @@ under the License.
</#if>
</div>
</div>
<script type="text/javascript">
<script type="application/javascript">
function setInventoryItemStatus(selection,index) {
var statusId = "statusId_o_" + index;
jObjectStatusId = jQuery("#" + statusId);
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function clearLine(facilityId, orderId, orderItemSeqId, productId, shipGroupSeqId, inventoryItemId, packageSeqId) {
document.clearPackLineForm.facilityId.value = facilityId;
document.clearPackLineForm.orderId.value = orderId;
@@ -518,11 +518,11 @@ under the License.
</#if>
<#if orderId?has_content>
<script type="text/javascript">
<script type="application/javascript">
document.singlePackForm.productId.focus();
</script>
<#else>
<script type="text/javascript">
<script type="application/javascript">
document.selectOrderForm.orderId.focus();
</script>
</#if>
@@ -103,7 +103,7 @@ under the License.
</tr>
</table>
</form>
<script type="text/javascript">
<script type="application/javascript">
document.routeForm.carrierPartyId.focus();
</script>
<#else>
@@ -146,7 +146,7 @@ under the License.
</tr>
</table>
</form>
<script type="text/javascript">
<script type="application/javascript">
document.weightForm.weight.focus();
</script>
</#if>
@@ -184,7 +184,7 @@ under the License.
</tr>
</table>
</form>
<script type="text/javascript">
<script type="application/javascript">
document.selectOrderForm.orderId.focus();
</script>
</#if>
@@ -19,7 +19,7 @@ under the License.
<#if shipment??>
<#-- JS to populate the quantity_o_# field required by the chained issueOrderItemToShipment service -->
<script type="text/javascript">
<script type="application/javascript">
function populateQuantities(rowCount) {
for (var x = 0; x <= rowCount; x++) {
var quantityAcceptedInput = document.getElementById('quantityAccepted_o_' + x);
@@ -56,18 +56,18 @@ under the License.
<#elseif ProductReceiveInventoryAgainstPurchaseOrderProductNotFound??>
<div class="errorMessage">
<#assign uiLabelWithVar=uiLabelMap.ProductReceiveInventoryAgainstPurchaseOrderProductNotFound?interpret><@uiLabelWithVar/>
<script type="text/javascript">window.onload=function(){showErrorAlert("${uiLabelMap.CommonErrorMessage2}","<@uiLabelWithVar/>");};</script>
<script type="application/javascript">window.onload=function(){showErrorAlert("${uiLabelMap.CommonErrorMessage2}","<@uiLabelWithVar/>");};</script>
</div>
<#elseif ProductReceiveInventoryAgainstPurchaseOrderQuantityExceedsAvailableToReceive??>
<div class="errorMessage">
<#assign uiLabelWithVar=uiLabelMap.ProductReceiveInventoryAgainstPurchaseOrderQuantityExceedsAvailableToReceive?interpret><@uiLabelWithVar/>
<script type="text/javascript">window.onload=function(){showErrorAlert("${uiLabelMap.CommonErrorMessage2}","<@uiLabelWithVar/>");};</script>
<script type="application/javascript">window.onload=function(){showErrorAlert("${uiLabelMap.CommonErrorMessage2}","<@uiLabelWithVar/>");};</script>
</div>
</#if>
<#if ProductReceiveInventoryAgainstPurchaseOrderQuantityGoesToBackOrder??>
<div class="errorMessage" style="color:green">
<#assign uiLabelWithVar=uiLabelMap.ProductReceiveInventoryAgainstPurchaseOrderQuantityGoesToBackOrder?interpret><@uiLabelWithVar/>
<script type="text/javascript">window.onload=function(){showErrorAlert("${uiLabelMap.CommonErrorMessage2}","<@uiLabelWithVar/>");};</script>
<script type="application/javascript">window.onload=function(){showErrorAlert("${uiLabelMap.CommonErrorMessage2}","<@uiLabelWithVar/>");};</script>
</div>
</#if>
</#if>
@@ -243,7 +243,7 @@ under the License.
<input type="submit" value="${uiLabelMap.CommonAdd}" class="smallSubmit"/>
</div>
</form>
<script type="text/javascript">
<script type="application/javascript">
document.getElementById('productId').focus();
</script>
</#if>
@@ -360,16 +360,16 @@ under the License.
</form>
</#if>
<#if orderId?has_content>
<script type="text/javascript">
<script type="application/javascript">
document.singlePickForm.productId.focus();
</script>
<#else>
<script type="text/javascript">
<script type="application/javascript">
document.selectOrderForm.orderId.focus();
</script>
</#if>
<#if shipmentId?has_content>
<script type="text/javascript">
<script type="application/javascript">
document.selectOrderForm.orderId.focus();
</script>
</#if>
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
<#-- some labels are not unescaped in the JSON object so we have to do this manualy -->
function unescapeHtmlText(text) {
return jQuery('<div />').html(text).text()
@@ -55,7 +55,7 @@ under the License.
</table>
</form>
<p>${uiLabelMap.WebtoolsNoteUseAtYourOwnRisk}</p>
<script type="text/javascript">
<script type="application/javascript">
function enableTablesRemove() {
document.forms["TablesRemoveForm"].elements["TablesRemoveButton"].disabled=false;
}
@@ -18,7 +18,7 @@ under the License.
-->
<#assign enableEdit = parameters.enableEdit?default("false")>
<script type="text/javascript">
<script type="application/javascript">
var numTabs=${(entity.getRelationsSize()+1)};
function ShowTab(lname) {
for(inc=1; inc <= numTabs; inc++) {
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function updateAndSaveLabel() {
document.UpdateLabelForm.action="<@ofbizUrl>SaveLabelsToXmlFile</@ofbizUrl>";
document.UpdateLabelForm.submit();
@@ -31,7 +31,7 @@ under the License.
<#if "N" == serviceParameter.optional><span class="tooltip">${uiLabelMap.CommonRequired}</span></#if>
<#if serviceParameter.defaultValue?has_content>${uiLabelMap.WebtoolsServiceDefault} ${serviceParameter.defaultValue?string}</#if>
<#if serviceParameter_index == 0>
<script type="text/javascript">
<script type="application/javascript">
document.scheduleForm.${serviceParameter.name}.focus();
</script>
</#if>
+1 -1
View File
@@ -31,7 +31,7 @@ under the License.
</div>
<#if userLogin??>
<script type="text/javascript">
<script type="application/javascript">
var mainmenu = new DropDownMenu(jQuery('#main-navigation'));
var appmenu = new DropDownMenu(jQuery('#app-navigation'));
</script>
+3 -3
View File
@@ -39,7 +39,7 @@ under the License.
</#if>
<#if layoutSettings.VT_HDR_JAVASCRIPT?has_content>
<#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript>
<script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="text/javascript"></script>
<script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="application/javascript"></script>
</#list>
</#if>
<#if layoutSettings.javaScripts?has_content>
@@ -49,7 +49,7 @@ under the License.
<#list layoutSettings.javaScripts as javaScript>
<#if javaScriptsSet.contains(javaScript)>
<#assign nothing = javaScriptsSet.remove(javaScript)/>
<script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="text/javascript"></script>
<script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="application/javascript"></script>
</#if>
</#list>
</#if>
@@ -82,7 +82,7 @@ under the License.
</#list>
</#if>
<#if layoutSettings.WEB_ANALYTICS?has_content>
<script type="text/javascript">
<script type="application/javascript">
<#list layoutSettings.WEB_ANALYTICS as webAnalyticsConfig>
${StringUtil.wrapString(webAnalyticsConfig.webAnalyticsCode!)}
</#list>
@@ -82,6 +82,6 @@ under the License.
</div>
</center>
<script type="text/javascript">
<script type="application/javascript">
document.loginform.PASSWORD.focus();
</script>
+1 -1
View File
@@ -66,7 +66,7 @@ under the License.
</div>
</center>
<script type="text/javascript">
<script type="application/javascript">
document.loginform.JavaScriptEnabled.value = "Y";
<#if focusName>
document.loginform.USERNAME.focus();
@@ -32,7 +32,7 @@ under the License.
</#list>
</#if>
<#else>
<script type="text/javascript">
<script type="application/javascript">
var autocomp = [
<#if autocompleteOptions?has_content>
<#list autocompleteOptions as autocompleteOption>
@@ -41,12 +41,12 @@ under the License.
style="border:1px solid #979797; background-color:#e5e3df; width:${geoChart.width}; height:${geoChart.height}; margin:2em auto;">
<div style="padding:1em; color:gray;">${uiLabelMap.CommonLoading}</div>
</div>
<script src="https://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>
<script src="https://maps.googleapis.com/maps/api/js?sensor=false" type="application/javascript"></script>
</#if>
<#-- ========================== Here we go with different types of maps renderer ===========================-->
<#if "GEOPT_GOOGLE" == geoChart.dataSourceId>
<script type="text/javascript">
<script type="application/javascript">
function showAllMarkers(map, points) {
if (points.length > 1) {
var latlngbounds = new google.maps.LatLngBounds();
@@ -90,7 +90,7 @@ under the License.
<#elseif "GEOPT_MICROSOFT" == geoChart.dataSourceId>
<#elseif "GEOPT_MAPTP" == geoChart.dataSourceId>
<#elseif "GEOPT_ADDRESS_GOOGLE" == geoChart.dataSourceId>
<script type="text/javascript">
<script type="application/javascript">
var geocoder = new google.maps.Geocoder();
var map = new google.maps.Map(document.getElementById("${id}"),
{
@@ -118,7 +118,7 @@ under the License.
due to https://github.com/openlayers/openlayers/issues/1025
rather use a local version loaded by framework/common/widget/CommonScreens.xml -->
<#-- script src="//www.openlayers.org/api/OpenLayers.js"></script-->
<script type="text/javascript">
<script type="application/javascript">
map = new OpenLayers.Map("${id}");
map.addLayer(new OpenLayers.Layer.OSM());
var zoom = ${zoom};
@@ -17,8 +17,8 @@ specific language governing permissions and limitations
under the License.
-->
<script src="https://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>
<script type="text/javascript">
<script src="https://maps.googleapis.com/maps/api/js?sensor=false" type="application/javascript"></script>
<script type="application/javascript">
function load() {
var geocoder = new google.maps.Geocoder();
var center = new google.maps.LatLng(${latitude!38}, ${longitude!15});
@@ -24,10 +24,10 @@ margin: 1em;
</style>
-->
<script type="text/javascript" src="/common/js/jquery/plugins/fancybox/jquery.fancybox-3.2.3.min.js"></script>
<script type="application/javascript" src="/common/js/jquery/plugins/fancybox/jquery.fancybox-3.2.3.min.js"></script>
<link rel="stylesheet" href="/common/js/jquery/plugins/fancybox/jquery.fancybox-3.2.3.min.css" type="text/css" media="screen"/>
<script type="text/javascript">
<script type="application/javascript">
$(document).ready(function () {
$("a#single_image").fancybox();
$("a#inline").fancybox({
@@ -28,7 +28,7 @@ under the License.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>${title!}</title>
<#-- the trick "<scr" + "ipt below is because browsers should not parse the contents of CDATA elements, but apparently they do. -->
<script type="text/javascript">//<![CDATA[
<script type="application/javascript">//<![CDATA[
var jQueryLibLoaded = false;
function initJQuery() {
if (typeof(jQuery) == 'undefined') {
@@ -45,7 +45,7 @@ under the License.
//]]>
</script>
<script src="<@ofbizContentUrl>/common/js/util/OfbizUtil.js</@ofbizContentUrl>"
type="text/javascript"></script>
type="application/javascript"></script>
<#if layoutSettings.javaScripts?has_content>
<#--layoutSettings.javaScripts is a list of java scripts. -->
<#-- use a Set to make sure each javascript is declared only once, but iterate the list to maintain the correct order -->
@@ -54,7 +54,7 @@ under the License.
<#if javaScriptsSet.contains(javaScript)>
<#assign nothing = javaScriptsSet.remove(javaScript)/>
<script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>"
type="text/javascript"></script>
type="application/javascript"></script>
</#if>
</#list>
</#if>
@@ -84,7 +84,7 @@ under the License.
</#list>
</#if>
<script type="text/javascript">
<script type="application/javascript">
// This code inserts the value lookedup by a popup window back into the associated form element
var re_id = new RegExp('id=(\\d+)');
var num_id = (re_id.exec(String(window.location))
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready(function () {
window.setInterval(function () {
clock()
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<#assign requestName><@ofbizUrl>${requestName}</@ofbizUrl></#assign>
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready(function () {
if (jQuery('#${dependentForm}_${mainId}').length) {
jQuery('#${dependentForm}_${mainId}').change(function (e, data) {
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
<#if asm_multipleSelect??> <#-- we check only this var and suppose the others are also present -->
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready(function () {
multiple = jQuery("#${asm_multipleSelect!}");
@@ -19,7 +19,7 @@ under the License.
<#if asm_listField??> <#-- we check only this var and suppose the others are also present -->
<#list asm_listField as row>
<#if row.asm_multipleSelect??>
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready(function () {
multiple = jQuery("#${row.asm_multipleSelect!}");
@@ -34,7 +34,7 @@ under the License.
<#if layoutSettings.javaScripts?has_content>
<#--layoutSettings.javaScripts is a list of java scripts. -->
<#list layoutSettings.javaScripts as javaScript>
<script src="<@ofbizContentUrl>${javaScript}</@ofbizContentUrl>" type="text/javascript"></script>
<script src="<@ofbizContentUrl>${javaScript}</@ofbizContentUrl>" type="application/javascript"></script>
</#list>
</#if>
<#if layoutSettings.styleSheets?has_content>
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript">
<script type="application/javascript">
function setTimeDuration() {
var years = window.document.getElementsByName("years")[0].value;
var weeks = window.document.getElementsByName("weeks")[0].value;
@@ -16,12 +16,12 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/flot/excanvas.min.js</@ofbizContentUrl>"></script>
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/flot/jquery.flot.js</@ofbizContentUrl>"></script>
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/flot/excanvas.min.js</@ofbizContentUrl>"></script>
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/flot/jquery.flot.js</@ofbizContentUrl>"></script>
<div id="${chartId}Div" style="width:600px;height:300px;"></div>
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready( function() {
/* Code Example: How should a chart Data Object look like */
/*var d1 = [[0, Math.ceil(Math.random()*40)]];
@@ -16,14 +16,14 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/flot/excanvas.min.js</@ofbizContentUrl>"></script>
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/flot/jquery.flot.js</@ofbizContentUrl>"></script>
<script type="text/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/flot/jquery.flot.pie.js</@ofbizContentUrl>"></script>
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/flot/excanvas.min.js</@ofbizContentUrl>"></script>
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/flot/jquery.flot.js</@ofbizContentUrl>"></script>
<script type="application/javascript" src="<@ofbizContentUrl>/common/js/jquery/plugins/flot/jquery.flot.pie.js</@ofbizContentUrl>"></script>
<div id="${chartId}Div" style="width:800px;height:300px;"></div>
<script type="text/javascript">
<script type="application/javascript">
jQuery(document).ready( function(){
/* Code Example: How should a chart Data Object look like */
/*var d1 = [[0, Math.ceil(Math.random()*40)]];
@@ -62,7 +62,7 @@ under the License.
<#if ajaxEnabled?has_content && ajaxEnabled>
<#assign defaultMinLength = modelTheme.getAutocompleterDefaultMinLength()>
<#assign defaultDelay = modelTheme.getAutocompleterDefaultDelay()>
<script type="text/javascript">ajaxAutoCompleter('${ajaxUrl!}', false, ${defaultMinLength!2}, ${defaultDelay!300});</script><#lt/>
<script type="application/javascript">ajaxAutoCompleter('${ajaxUrl!}', false, ${defaultMinLength!2}, ${defaultDelay!300});</script><#lt/>
</#if>
</#macro>
@@ -102,7 +102,7 @@ under the License.
<#if maxlength?has_content> maxlength="${maxlength}"</#if>
<#if id?has_content> id="${id}"</#if>/><#rt/>
<#if dateType!="time" >
<script type="text/javascript">
<script type="application/javascript">
<#-- If language specific lib is found, use date / time converter else just copy the value fields -->
if (Date.CultureInfo != undefined) {
var initDate = <#if value?has_content>jQuery("#${id}").val()<#else>""</#if>;
@@ -243,7 +243,7 @@ under the License.
</#if>
<#if ajaxEnabled>
<script type="text/javascript">
<script type="application/javascript">
ajaxAutoCompleteDropDown();
jQuery(function() {
jQuery("#${id}").combobox();
@@ -476,7 +476,7 @@ under the License.
<span class="view-calendar">
<input id="${name?html}_fld0_value" type="text" <@renderClass className alert /><#if name?has_content> name="${name?html}_fld0_value"</#if><#if localizedInputTitle?has_content> title="${localizedInputTitle}"</#if><#if value?has_content> value="${value}"</#if><#if size?has_content> size="${size}"</#if><#if maxlength?has_content> maxlength="${maxlength}"</#if>/><#if tabindex?has_content> tabindex="${tabindex}"</#if><#rt/>
<#if dateType != "time">
<script type="text/javascript">
<script type="application/javascript">
<#if "date" == dateType>
jQuery("#${name?html}_fld0_value").datepicker({
<#else>
@@ -513,7 +513,7 @@ under the License.
<#rt/>
<input id="${name?html}_fld1_value" type="text" <@renderClass className alert /><#if name?has_content> name="${name}_fld1_value"</#if><#if localizedInputTitle??> title="${localizedInputTitle?html}"</#if><#if value2?has_content> value="${value2}"</#if><#if size?has_content> size="${size}"</#if><#if maxlength?has_content> maxlength="${maxlength}"</#if>/><#rt/>
<#if dateType != "time">
<script type="text/javascript">
<script type="application/javascript">
<#if "date" == dateType>
jQuery("#${name?html}_fld1_value").datepicker({
<#else>
@@ -38,7 +38,7 @@ under the License.
<#macro renderContainerBegin id autoUpdateInterval style="" autoUpdateLink="">
<#if autoUpdateLink?has_content>
<script type="text/javascript">ajaxUpdateAreaPeriodic('${id}', '${autoUpdateLink}', '', '${autoUpdateInterval}');</script>
<script type="application/javascript">ajaxUpdateAreaPeriodic('${id}', '${autoUpdateLink}', '', '${autoUpdateInterval}');</script>
</#if>
<div<#if id?has_content> id="${id}"</#if><#if style?has_content> class="${style}"</#if>>
</#macro>
@@ -185,7 +185,7 @@ ${menuString}
<#macro renderPortalPageColumnBegin originalPortalPageId portalPageId columnSeqId confMode="false" width="auto" delColumnLabel="Delete column" delColumnHint="Delete this column" addPortletLabel="Add portlet" addPortletHint="Add a new portlet to this column" colWidthLabel="Col. width:" setColumnSizeHint="Set column size">
<#assign columnKey = portalPageId+columnSeqId>
<#assign columnKeyFields = '<input name="portalPageId" value="' + portalPageId + '" type="hidden"/><input name="columnSeqId" value="' + columnSeqId + '" type="hidden"/>'>
<script type="text/javascript">
<script type="application/javascript">
if (typeof SORTABLE_COLUMN_LIST != "undefined") {
if (SORTABLE_COLUMN_LIST == null) {
SORTABLE_COLUMN_LIST = "#portalColumn_${columnSeqId}";
@@ -659,7 +659,7 @@ function setLookDescription(textFieldId, description, params, formName, showDesc
if (lookupWrapperEl.length) {
if (start == -1 && showDescription) {
var start = description.indexOf(' ');
if (start != -1 && description.indexOf('<script type="text/javascript">') == -1) {
if (start != -1 && description.indexOf('<script type="application/javascript">') == -1) {
description = description.substring(start);
}
}
+1 -1
View File
@@ -38,7 +38,7 @@ under the License.
</div>
<#if layoutSettings.VT_FTR_JAVASCRIPT?has_content>
<#list layoutSettings.VT_FTR_JAVASCRIPT as javaScript>
<script type="text/javascript" src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="text/javascript"></script>
<script type="application/javascript" src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="application/javascript"></script>
</#list>
</#if>
</body>
+3 -3
View File
@@ -35,7 +35,7 @@ under the License.
</#if>
<#if layoutSettings.VT_HDR_JAVASCRIPT?has_content>
<#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript>
<script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="text/javascript"></script>
<script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="application/javascript"></script>
</#list>
</#if>
<#if layoutSettings.javaScripts?has_content>
@@ -45,7 +45,7 @@ under the License.
<#list layoutSettings.javaScripts as javaScript>
<#if javaScriptsSet.contains(javaScript)>
<#assign nothing = javaScriptsSet.remove(javaScript)/>
<script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="text/javascript"></script>
<script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="application/javascript"></script>
</#if>
</#list>
</#if>
@@ -79,7 +79,7 @@ under the License.
</#if>
<#if lastParameters??><#assign parametersURL = "&amp;" + lastParameters></#if>
<#if layoutSettings.WEB_ANALYTICS?has_content>
<script type="text/javascript">
<script type="application/javascript">
<#list layoutSettings.WEB_ANALYTICS as webAnalyticsConfig>
${StringUtil.wrapString(webAnalyticsConfig.webAnalyticsCode!)}
</#list>
@@ -80,6 +80,6 @@ under the License.
</div>
</center>
<script type="text/javascript">
<script type="application/javascript">
document.loginform.PASSWORD.focus();
</script>
+1 -1
View File
@@ -67,7 +67,7 @@ under the License.
</div>
</center>
<script type="text/javascript">
<script type="application/javascript">
document.loginform.JavaScriptEnabled.value = "Y";
<#if focusName>
document.loginform.USERNAME.focus();

Some files were not shown because too many files have changed in this diff Show More