Advertisement
martyychang

Jquery mobileの入力項目のレイアウトがルックアップダイアログ表示で崩れる

Mar 11th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.57 KB | None | 0 0
  1. <apex:page standardController="Contact" sidebar="false" showHeader="false" standardStylesheets="false">
  2.     <!-- Jquery mobileの入力項目のレイアウトがルックアップダイアログ表示で崩れる
  3.         https://developer.salesforce.com/forums?id=906F00000009BhnIAE -->
  4.  
  5.     <!-- http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css -->
  6.     <apex:stylesheet value="{!URLFOR($Resource.jQueryMobileStylesheet)}"/>
  7.    
  8.     <!-- http://code.jquery.com/jquery-1.11.0.min.js -->
  9.     <apex:includeScript value="{!URLFOR($Resource.jQueryScript)}"/>
  10.    
  11.     <!-- http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js -->
  12.     <apex:includeScript value="{!URLFOR($Resource.jQueryMobileScript)}"/>
  13.    
  14.     <div data-role="page">
  15.         <apex:form>
  16.             <div class="ui-field-contain">
  17.                 <apex:outputLabel for="firstName">First Name</apex:outputLabel>
  18.                 <apex:inputField id="firstName" value="{!Contact.FirstName}"/>
  19.             </div>
  20.             <div class="ui-field-contain">
  21.                 <fieldset data-role="controlgroup" data-type="horizontal">
  22.                     <legend>Account</legend>
  23.                     <apex:outputLabel for="accountId1">Account</apex:outputLabel>
  24.                     <apex:inputField id="accountId1" value="{!Contact.AccountId}"/>
  25.                 </fieldset>
  26.             </div>
  27.         </apex:form>
  28.     </div>
  29.    
  30.     <script>
  31.     $("span.lookupInput>input").click(function() {
  32.         $(this).closest("span").children("a")[0].click();
  33.     });
  34.     </script>
  35. </apex:page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement