r57733 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57732‎ | r57733 | r57734 >
Date:00:36, 15 October 2009
Author:dale
Status:deferred
Tags:
Comment:
* used helper function for inOutPreview binding
Modified paths:
  • /trunk/phase3/js2/mwEmbed/libClipEdit/mvClipEdit.js (modified) (history)

Diff [purge]

Index: trunk/phase3/js2/mwEmbed/libClipEdit/mvClipEdit.js
@@ -414,18 +414,10 @@
415415 });
416416
417417 //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(){
426419 $j('#embed_vid').get(0).stop();
427420 $j('#embed_vid').get(0).play();
428 - });
429 - //simple hover:
 421+ });
430422
431423 },
432424 getSetInOutHtml:function( setInt ){
@@ -445,7 +437,7 @@
446438 '</td>' +
447439 '</tr>' +
448440 '</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');
450442 },
451443 getInsertDescHtml:function(){
452444 var o= '<h3>Inline Description</h3>'+

Status & tagging log