Index: branches/new-upload/phase3/js2/mwEmbed/libAddMedia/remoteSearchDriver.js |
— | — | @@ -339,7 +339,7 @@ |
340 | 340 | |
341 | 341 | //set up the target invocation: |
342 | 342 | if( $j(this.target_invocation).length==0 ){ |
343 | | - js_error("RemoteSearchDriver:: no target invocation provided") |
| 343 | + js_log("RemoteSearchDriver:: no target invocation provided") |
344 | 344 | }else{ |
345 | 345 | $j(this.target_invocation).css('cursor','pointer').attr('title', gM('add_media_wizard')).click(function(){ |
346 | 346 | _this.doInitDisplay(); |
Index: branches/new-upload/phase3/js2/mwEmbed/skins/mvpcf/styles.css |
— | — | @@ -702,7 +702,6 @@ |
703 | 703 | |
704 | 704 | |
705 | 705 | |
706 | | - |
707 | 706 | /* jCROP css:*/ |
708 | 707 | .jcrop-holder |
709 | 708 | { |
Index: branches/new-upload/phase3/js2/remoteMwEmbed.js |
— | — | @@ -23,9 +23,10 @@ |
24 | 24 | } |
25 | 25 | |
26 | 26 | //oggHandler rewrite: |
| 27 | +var vidIdList = []; |
27 | 28 | var divs = document.getElementsByTagName('div'); |
28 | 29 | for(var i = 0; i < divs.length; i++){ |
29 | | - if( divs[i].id.substring(0,11) == 'ogg_player_'){ |
| 30 | + if( divs[i].id && divs[i].id.substring(0,11) == 'ogg_player_'){ |
30 | 31 | vidIdList.push( divs[i].getAttribute("id") ); |
31 | 32 | } |
32 | 33 | } |
Index: branches/new-upload/phase3/js2/editPage.js |
— | — | @@ -24,8 +24,7 @@ |
25 | 25 | }); |
26 | 26 | var mwEditPageHelper = { |
27 | 27 | init:function(){ |
28 | | - var _this = this; |
29 | | - alert('runing mwEditPageHelper'); |
| 28 | + var _this = this; |
30 | 29 | //add the add-media-wizard button |
31 | 30 | $j('#toolbar').append('<img style="cursor:pointer" id="btn-add-media-wiz" src="' + mv_skin_img_path + 'Button_add_media.png">'); |
32 | 31 | $j('#btn-add-media-wiz').addMediaWiz( |