Index: trunk/phase3/js2/mwEmbed/libClipEdit/mvClipEdit.js |
— | — | @@ -414,18 +414,10 @@ |
415 | 415 | }); |
416 | 416 | |
417 | 417 | //preview button: |
418 | | - $j('#'+this.control_ct + ' .inOutPreviewClip').hover( |
419 | | - function(){ |
420 | | - $j(this).addClass('ui-state-hover'); |
421 | | - }, |
422 | | - function(){ |
423 | | - $j(this).removeClass('ui-state-hover'); |
424 | | - } |
425 | | - ).click(function(){ |
| 418 | + $j('#'+this.control_ct + ' .inOutPreviewClip').btnBind().click(function(){ |
426 | 419 | $j('#embed_vid').get(0).stop(); |
427 | 420 | $j('#embed_vid').get(0).play(); |
428 | | - }); |
429 | | - //simple hover: |
| 421 | + }); |
430 | 422 | |
431 | 423 | }, |
432 | 424 | getSetInOutHtml:function( setInt ){ |
— | — | @@ -445,7 +437,7 @@ |
446 | 438 | '</td>' + |
447 | 439 | '</tr>' + |
448 | 440 | '</table>'+ |
449 | | - '<a href="#" class="ui-state-default ui-corner-all ui-icon_link inOutPreviewClip"><span class="ui-icon ui-icon-video"></span>'+ gM('mwe-preview_inout') +'</a>'; |
| 441 | + $j.btnHtml( gM('mwe-preview_inout'), 'inOutPreviewClip', 'video'); |
450 | 442 | }, |
451 | 443 | getInsertDescHtml:function(){ |
452 | 444 | var o= '<h3>Inline Description</h3>'+ |