From 05a401771423f188dd96c6d399b94e14b59f03c3 Mon Sep 17 00:00:00 2001 From: Michael Dale Date: Thu, 15 Oct 2009 00:36:12 +0000 Subject: [PATCH] * used helper function for inOutPreview binding --- js2/mwEmbed/libClipEdit/mvClipEdit.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/js2/mwEmbed/libClipEdit/mvClipEdit.js b/js2/mwEmbed/libClipEdit/mvClipEdit.js index ced5f6df2b..b06621d445 100644 --- a/js2/mwEmbed/libClipEdit/mvClipEdit.js +++ b/js2/mwEmbed/libClipEdit/mvClipEdit.js @@ -414,18 +414,10 @@ mvClipEdit.prototype = { }); //preview button: - $j('#'+this.control_ct + ' .inOutPreviewClip').hover( - function(){ - $j(this).addClass('ui-state-hover'); - }, - function(){ - $j(this).removeClass('ui-state-hover'); - } - ).click(function(){ + $j('#'+this.control_ct + ' .inOutPreviewClip').btnBind().click(function(){ $j('#embed_vid').get(0).stop(); $j('#embed_vid').get(0).play(); - }); - //simple hover: + }); }, getSetInOutHtml:function( setInt ){ @@ -445,7 +437,7 @@ mvClipEdit.prototype = { '' + '' + ''+ - ''+ gM('mwe-preview_inout') +''; + $j.btnHtml( gM('mwe-preview_inout'), 'inOutPreviewClip', 'video'); }, getInsertDescHtml:function(){ var o= '

Inline Description

'+ -- 2.20.1