Author: michiel Date: 2010-03-01 11:26:22 +0100 (Mon, 01 Mar 2010) New Revision: 41191
Modified: speeltuin/mihxil/portal/src/main/webapp/mmbase/portal/portal.js.jsp Log: applied some code conventions Modified: speeltuin/mihxil/portal/src/main/webapp/mmbase/portal/portal.js.jsp =================================================================== --- speeltuin/mihxil/portal/src/main/webapp/mmbase/portal/portal.js.jsp 2010-03-01 10:16:46 UTC (rev 41190) +++ speeltuin/mihxil/portal/src/main/webapp/mmbase/portal/portal.js.jsp 2010-03-01 10:26:22 UTC (rev 41191) @@ -1,9 +1,11 @@ -// -*- mode: javascript; -*- +/* <%...@page contentType="text/javascript; charset=UTF-8" session="false" %><%...@taglib uri="http://www.mmbase.org/mmbase-taglib-2.0" prefix="mm" %><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><mm:content type="text/javascript" language="${param.language}"> <fmt:bundle basename="org.mmbase.portal.portal"> +*/ + $.ui.dialog.defaults.bgiframe = true; function MMBasePortal(root) { this.editordir = $("head meta[name='org.mmbase.portal.editordir']").attr("content"); @@ -16,16 +18,16 @@ autoOpen: false, modal: true, height: 0.8 * $(window).height(), - width: 0.9 * $(window).width(), + width: 0.9 * $(window).width(), close: function() { $("#mm_portal_edit").empty(); $("body").trigger("mmpClosed", [self]); } - } + }; $(document).ready(function() { - self.init(); - }); -} + self.init(); + }); +}; MMBasePortal.prototype.init = function() { var self = this; @@ -36,7 +38,7 @@ this.addLinksToEditables(); this.addLinkToBody(); -} +}; MMBasePortal.prototype.addLinkToElement = function(el) { @@ -65,7 +67,7 @@ } args += a + "=" + params[a]; } - var a = $("<a class='mm_portal_edit'><fmt:message key="edit" /></a>"); + var a = $("<a class='mm_portal_edit'><fmt:message key='edit' /></a>"); $(a).attr("href", self.editordir + editor + "/" + args); $(div).append(a); @@ -85,7 +87,7 @@ } return false; }); -} +}; MMBasePortal.prototype.addLinksToEditables = function() { @@ -93,12 +95,12 @@ $(this.root).find(".editable").each(function() { self.addLinkToElement(this); }); -} +}; MMBasePortal.prototype.addLinkToBody = function() { var body = $("body")[0]; this.addLinkToElement(body); -} +}; MMBasePortal.prototype.parseQueryString = function (location) { @@ -110,7 +112,7 @@ result[entry[0]] = entry[1]; } return result; -} +}; MMBasePortal.prototype.joinQuery = function(query) { var result = ""; @@ -123,7 +125,8 @@ result += k + "=" + query[k]; } return result; -} - +}; +/* </fmt:bundle> </mm:content> +*/ \ No newline at end of file _______________________________________________ Cvs mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/cvs
