Changeset 27743 for extensions/MyPiwiShop/admin/template/product.tpl
- Timestamp:
- Mar 12, 2014, 11:28:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/MyPiwiShop/admin/template/product.tpl
r27589 r27743 22 22 23 23 $('#AddProd').click(function() { 24 $('.add_ content').css('top','100px')24 $('.add_wrap').css('top','100px') 25 25 $('.Tadd').show(); 26 26 $('#Add_product').fadeIn(); … … 197 197 198 198 $('#ChangeOrder').click(function() { 199 var $pos = $(document).scrollTop(), 200 $pos = $pos + 100; 201 202 $('#change_Order .add_content').css('top',$pos) 199 203 $("#change_Order").fadeIn( 200 204 ); … … 224 228 }); 225 229 226 $( '.addVal').click(function(){230 $(document).on('click','.addVal',function(){ 227 231 $('.valeur').append($('<div/>').addClass('val').append($val)); 228 232 ;return false; … … 239 243 } 240 244 } 245 return false 246 }); 247 248 $(document).on('click','#close_addoption',function() { 249 $('#sub_add_product').show(); 250 $('#add_option_prod input[type=text]').attr('value',''); 251 $('.val').remove(); 252 $('.valeur').append($('<div/>').addClass('val').append($val)); 253 $('select#optType option').each(function(){ 254 $(this).removeAttr('selected'); 255 }); 256 $('#add_option_prod').hide().html($add_opt); 241 257 return false 242 258 }); … … 261 277 data: $(this).serialize(), 262 278 success: function(html){ 263 var $idlo = $(html).find('#idlastopt').text(); 264 console.debug($idlo); 279 var $idlo = $(html).find('#idlastopt').data('idlo'); 265 280 $('#opt select').append($('<option />').attr({'value':$idlo,'selected':'selected'}).text($optecour)); 266 281 $('.chzn-select').trigger("chosen:updated"); … … 285 300 286 301 <div id="prodvar" class="titrePage" data-product='{$mps_product|@json_encode}'> 302 <ul class="HelpActions"> 303 <li> 304 <a title="Aide" onclick="popuphelp(this.href); return false;" href="admin/popuphelp.php?page=cat_options"> 305 <img alt="(?)" src="admin/themes/clear/icon/help.png"> 306 </a> 307 </li> 308 </ul> 287 309 <h2>{'Products'|@translate}</h2> 288 310 </div> … … 345 367 <div id="add_option_prod" style="display:none"> 346 368 <div> 369 <span id="close_addoption" class="close_box_add"></span> 347 370 348 371 <form id="addopt_form" method="post" name="add_opt" action="">
Note: See TracChangeset
for help on using the changeset viewer.