Changeset 2578


Ignore:
Timestamp:
Sep 24, 2008, 2:51:40 AM (16 years ago)
Author:
rvelices
Message:
  • user_list submit form without selected user shows javascript alert (now working; previously had bad XPath selector)
  • put #debug css rule in Sylvia/theme.css (I removed it in my prev commit from default-layout)
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/template/goto/user_list.tpl

    r2564 r2578  
    315315</form>
    316316
     317<script type="text/javascript">// <![CDATA[{literal}
     318jQuery("form:last").submit( function() {
     319        if ( jQuery("input[name=target][value=selection]:checked", this).length > 0 )
     320        if ( jQuery("input[name='selection[]']:checked", this).length == 0)
     321        {
     322                alert( {/literal}"{'Select at least one user'|@translate|escape:javascript}"{literal} );
     323                return false;
     324        }
     325        return true;
     326}
     327);{/literal}
     328// ]]>
     329</script>
     330 
  • trunk/template/yoga/theme/Sylvia/theme.css

    r2570 r2578  
    7676A, INPUT.rateButton { color: #f70; outline: none; border: none;}
    7777A:hover, A:active { color: #f33; border: 0; outline: none; }
     78
     79#debug { margin: 15px 15px 5px 248px; font-size:12px; clear: both; word-wrap:break-word;}
Note: See TracChangeset for help on using the changeset viewer.