function itemCustomHead() { echo '<script type="text/javascript" src="' . osc_current_web_theme_js_url('jquery.validate.min.js') . '"></script>'; echo '<script type="text/javascript" src="' . osc_current_web_theme_js_url('tabber-minimized.js') . '"></script>'; ?> <?php if (osc_images_enabled_at_items()) { ItemForm::photos_javascript(); } ?> <?php }
function itemCustomHead() { echo '<script type="text/javascript" src="' . osc_current_web_theme_js_url('tabber-minimized.js') . '"></script>'; ?> <?php if (realestate_default_location_show_as() == 'dropdown') { ItemForm::location_javascript(); } else { ItemForm::location_javascript_new(); } ?> <?php if (osc_images_enabled_at_items()) { ItemForm::photos_javascript(); } ?> <!-- end only item-post.php --> <?php }
$("#contact_info").hide(); } }); if($($("#userId")).val()=='') { $("#contact_info").show(); } else { $("#contact_info").hide(); } }); </script> <?php ItemForm::location_javascript('admin'); ?> <?php if (osc_images_enabled_at_items()) { ItemForm::photos_javascript(); } ?> <div id="content"> <div id="separator"></div> <?php osc_current_admin_theme_path('include/backoffice_menu.php'); ?> <div id="right_column"> <div id="home_header" style="margin-left: 40px;"> <h1> <?php if ($new_item) { _e('New item');
function customHead() { ?> <script type="text/javascript"> document.write('<style type="text/css"> .tabber{ display:none; } </style>'); $(document).ready(function(){ $('input[name="user"]').attr( "autocomplete", "off" ); $('#user,#fUser').autocomplete({ source: "<?php echo osc_admin_base_url(true); ?> ?page=ajax&action=userajax", minLength: 0, select: function( event, ui ) { if(ui.item.id=='') { $("#contact_info").show(); return false; } $('#userId').val(ui.item.id); $('#fUserId').val(ui.item.id); $("#contact_info").hide(); } }); <?php if (osc_locale_thousands_sep() != '' || osc_locale_dec_point() != '') { ?> $("#price").blur(function(event) { var price = $("#price").attr("value"); <?php if (osc_locale_thousands_sep() != '') { ?> while(price.indexOf('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?> ')!=-1) { price = price.replace('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?> ', ''); } <?php } ?> <?php if (osc_locale_dec_point() != '') { ?> var tmp = price.split('<?php echo osc_esc_js(osc_locale_dec_point()); ?> '); if(tmp.length>2) { price = tmp[0]+'<?php echo osc_esc_js(osc_locale_dec_point()); ?> '+tmp[1]; } <?php } ?> $("#price").attr("value", price); }); <?php } ?> }); </script> <?php ItemForm::location_javascript_new('admin'); ?> <?php if (osc_images_enabled_at_items()) { ItemForm::photos_javascript(); } ?> <?php }
function customHead() { ?> <script type="text/javascript" src="<?php echo osc_current_admin_theme_js_url('jquery.validate.min.js'); ?> "></script> <script type="text/javascript"> document.write('<style type="text/css"> .tabber{ display:none; } </style>') ; $(document).ready(function(){ $("#userId").bind('change', function() { if($(this).val() == '') { $("#contact_info").show() ; } else { $("#contact_info").hide() ; } }) ; if( $("#userId").val() == '') { $("#contact_info").show() ; } else { $("#contact_info").hide() ; } <?php if (osc_locale_thousands_sep() != '' || osc_locale_dec_point() != '') { ?> $("#price").blur(function(event) { var price = $("#price").attr("value"); <?php if (osc_locale_thousands_sep() != '') { ?> while(price.indexOf('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?> ')!=-1) { price = price.replace('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?> ', ''); } <?php } ?> <?php if (osc_locale_dec_point() != '') { ?> var tmp = price.split('<?php echo osc_esc_js(osc_locale_dec_point()); ?> '); if(tmp.length>2) { price = tmp[0]+'<?php echo osc_esc_js(osc_locale_dec_point()); ?> '+tmp[1]; } <?php } ?> $("#price").attr("value", price); }); <?php } ?> }); </script> <?php ItemForm::location_javascript_new('admin'); ?> <?php if (osc_images_enabled_at_items()) { ItemForm::photos_javascript(); } ?> <?php }
function customHead() { ?> <script type="text/javascript"> document.write('<style type="text/css"> .tabber{ display:none; } </style>'); $(document).ready(function(){ $('input[name="user"]').attr( "autocomplete", "off" ); $('#user,#fUser').autocomplete({ source: "<?php echo osc_admin_base_url(true); ?> ?page=ajax&action=userajax", minLength: 0, select: function( event, ui ) { if(ui.item.id=='') { $("#contact_info").show(); return false; } $('#userId').val(ui.item.id); $('#fUserId').val(ui.item.id); $("#contact_info").hide(); } }); $('.ui-autocomplete').css('zIndex', 10000); <?php if (osc_locale_thousands_sep() != '' || osc_locale_dec_point() != '') { ?> $("#price").on("blur", function(event) { var price = $("#price").prop("value"); <?php if (osc_locale_thousands_sep() != '') { ?> while(price.indexOf('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?> ')!=-1) { price = price.replace('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?> ', ''); } <?php } ?> <?php if (osc_locale_dec_point() != '') { ?> var tmp = price.split('<?php echo osc_esc_js(osc_locale_dec_point()); ?> '); if(tmp.length>2) { price = tmp[0]+'<?php echo osc_esc_js(osc_locale_dec_point()); ?> '+tmp[1]; } <?php } ?> $("#price").prop("value", price); }); <?php } ?> $('#update_expiration').change( function() { if($(this).attr("checked")) { $('#dt_expiration').prop('value', ''); $('div.update_expiration').show(); } else { $('#dt_expiration').prop('value', '-1'); $('div.update_expiration').hide(); } }); $('body').on("created", '[name^="select_"]',function(evt) { selectUi($(this)); }); }); </script> <?php ItemForm::location_javascript('admin'); ?> <?php if (osc_images_enabled_at_items()) { ItemForm::photos_javascript(); } ?> <?php }