Permalink
Browse files

removing the span tag that gets added by default by components

  • Loading branch information...
1 parent 8be3025 commit 7ceea15c3e9bd81fb900523aefe319308ebe7e3d @akhileshgupta akhileshgupta committed Aug 22, 2012
@@ -1,4 +1,4 @@
-<apex:component controller="AppController">
+<apex:component controller="AppController" layout="none">
<apex:attribute name="elemId" type="String" assignTo="{!config.elemId}" required="false" default="app" description=""/>
<apex:attribute name="debug" type="Boolean" assignTo="{!config.debug}" default="false" description=""/>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexComponent xmlns="http://soap.sforce.com/2006/04/metadata">
- <apiVersion>24.0</apiVersion>
+ <apiVersion>25.0</apiVersion>
<description>This component provides basic application requirements for a mobile app.</description>
<label>App</label>
</ApexComponent>
@@ -1,17 +1,7 @@
-<apex:component controller="ContentController">
+<apex:component controller="ContentController" layout="none">
<apex:outputPanel layout="none" id="content">
<div data-role="content" id="{!$Component.content}">
<apex:componentBody />
</div><!-- /content -->
</apex:outputPanel>
- <script>
- //Removing all the parent span tags until the next release VF fix
- (function($) {
- var elem = $('[id="{!$Component.content}"]');
- elem.parent('span').replaceWith(function() {
- elem.find('script').remove();
- return elem;
- });
- })(jQuery);
- </script>
</apex:component>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexComponent xmlns="http://soap.sforce.com/2006/04/metadata">
- <apiVersion>24.0</apiVersion>
+ <apiVersion>25.0</apiVersion>
<description>This is a generic template for Visualforce Component. With this template, you may adjust the default elements and values and add new elements and values.</description>
<label>Content</label>
</ApexComponent>
@@ -1,4 +1,4 @@
-<apex:component controller="DetailController">
+<apex:component controller="DetailController" layout="none">
<apex:attribute name="sobject" type="String" required="true" assignTo="{!config.sType}" description="SObject for which list needs to be generated."/>
<apex:attribute name="jsCtlrName" type="String" assignTo="{!config.jsCtlrName}" default="$V.DetailComponent" description="Custom Javascript handler to manage client-side lifecycle and behavior."/>
<apex:attribute name="debug" type="Boolean" assignTo="{!config.debug}" default="false" description=""/>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexComponent xmlns="http://soap.sforce.com/2006/04/metadata">
- <apiVersion>24.0</apiVersion>
+ <apiVersion>25.0</apiVersion>
<description>This component allows the rendition of record details for a mobile app. Must be used inside an App component.</description>
<label>Detail</label>
</ApexComponent>
@@ -1,4 +1,4 @@
-<apex:component controller="FooterController">
+<apex:component controller="FooterController" layout="none">
<!-- style and behavior -->
<apex:attribute name="position" type="String" default="fixed" description="[inline|fixed]"/>
@@ -7,15 +7,4 @@
<apex:componentBody />
</footer><!-- /footer -->
</apex:outputPanel>
-
- <script>
- //Removing all the parent span tags until the next release VF fix
- (function($) {
- var elem = $('[id="{!$Component.footer}');
- elem.parent('span').replaceWith(function() {
- elem.find('script').remove();
- return elem;
- });
- })(jQuery);
- </script>
</apex:component>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexComponent xmlns="http://soap.sforce.com/2006/04/metadata">
- <apiVersion>24.0</apiVersion>
+ <apiVersion>25.0</apiVersion>
<description>This is a generic template for Visualforce Component. With this template, you may adjust the default elements and values and add new elements and values.</description>
<label>Footer</label>
</ApexComponent>
@@ -1,4 +1,4 @@
-<apex:component controller="HeaderController">
+<apex:component controller="HeaderController" layout="none">
<!-- style and behavior -->
<apex:attribute name="position" type="String" default="fixed" description="[inline|fixed]"/>
@@ -7,15 +7,4 @@
<apex:componentBody />
</header><!-- /header -->
</apex:outputPanel>
-
- <script>
- //Removing all the parent span tags until the next release VF fix
- (function($) {
- var elem = $('[id="{!$Component.header}');
- elem.parent('span').replaceWith(function() {
- elem.find('script').remove();
- return elem;
- });
- })(jQuery);
- </script>
</apex:component>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexComponent xmlns="http://soap.sforce.com/2006/04/metadata">
- <apiVersion>24.0</apiVersion>
+ <apiVersion>25.0</apiVersion>
<description>This is a generic template for Visualforce Component. With this template, you may adjust the default elements and values and add new elements and values.</description>
<label>Header</label>
</ApexComponent>
@@ -1,4 +1,4 @@
-<apex:component controller="ListController">
+<apex:component controller="ListController" layout="none">
<!-- Content -->
<apex:attribute name="sobject" type="String" required="true" assignTo="{!config.sType}" description=""/>
<apex:attribute name="filter" type="String" required="false" assignTo="{!config.filter}" description="owner|recent|follower"/>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexComponent xmlns="http://soap.sforce.com/2006/04/metadata">
- <apiVersion>24.0</apiVersion>
+ <apiVersion>25.0</apiVersion>
<description>This component allows the rendition of record list for a mobile app. Must be used inside an App component.</description>
<label>List</label>
</ApexComponent>
@@ -1,4 +1,4 @@
-<apex:component controller="NavController">
+<apex:component controller="NavController" layout="none">
<apex:attribute name="elemId" type="String" required="true" assignTo="{!config.elemId}" description=""/>
<apex:attribute name="pages" type="String" required="true" assignTo="{!config.pages}"
description="JSON format: [{'page':'<page id or url>','name':'<link name>','iconCls':'<optional icon class>'},...]"/>
@@ -11,10 +11,5 @@
<ul></ul>
</div><!-- /navbar -->
- <script>
- $V.App.registerComponent('{!config.elemId}', {!configJson});
- $('#{!config.elemId}').parent().replaceWith(function() {
- return $('#{!config.elemId}');
- });
- </script>
+ <script>$V.App.registerComponent('{!config.elemId}', {!configJson});</script>
</apex:component>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexComponent xmlns="http://soap.sforce.com/2006/04/metadata">
- <apiVersion>24.0</apiVersion>
+ <apiVersion>25.0</apiVersion>
<description>This component allows the rendition of navigation controls for a mobile app. Must be used inside an App component along with the PageTemplate.</description>
<label>Nav</label>
</ApexComponent>
@@ -1,4 +1,4 @@
-<apex:component controller="PageController">
+<apex:component controller="PageController" layout="none">
<!-- general -->
<apex:attribute name="name" type="String" assignTo="{!config.elemId}" required="true" description=""/>
<!-- style and behavior -->
@@ -16,10 +16,5 @@
</section>
<script>
$V.App.registerPage('{!config.elemId}');
- (function($) {
- $('#{!config.elemId}').parent().replaceWith(function() {
- return $('#{!config.elemId}');
- });
- })(jQuery);
- </script>
+ </script>
</apex:component>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexComponent xmlns="http://soap.sforce.com/2006/04/metadata">
- <apiVersion>24.0</apiVersion>
+ <apiVersion>25.0</apiVersion>
<description>This is a generic template for Visualforce Component. With this template, you may adjust the default elements and values and add new elements and values.</description>
<label>Page</label>
</ApexComponent>

0 comments on commit 7ceea15

Please sign in to comment.