Changeset 250:6f7f02e0b22b
- Timestamp:
- 05/12/11 19:15:15 (14 years ago)
- Branch:
- default
- Parents:
- 249:d0a17b7ca6e0 (diff), 248:b4b985c686c8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_media.js
r224 r250 17 17 18 18 if (!$.browser.opera) { 19 var cue = $('<a/>').attr({'id':'candyupload-enable','href':'#'}).append(dotclear.msg.activate_enhanced_uploader) 20 .click(function() { 21 candyUploadInit(); 22 return false; 23 }); 24 $('#media-upload>fieldset').append($('<div></div>').append(cue)); 25 26 if ($.cookie('dc_candy_upl') == 1) { 19 if (dotclear.candyUpload_force_init == '1') { 27 20 candyUploadInit(); 28 21 } … … 43 36 createControls: function() { 44 37 var _this = this; 45 var cud = $('<a/>').attr({'id':'candyupload-disable','href':'#'}).append(dotclear.msg.disable_enhanced_uploader)46 .click(function() {47 _this.upldr.destroy();48 _this.ctrl.block.empty().remove();49 $('#media-upload').show();50 delete _this;51 $.cookie('dc_candy_upl','',{expires: -1});52 return false;53 });54 38 this.ctrl.btn_browse.hide(); 55 39 this.ctrl.msg.html(dotclear.msg.load_enhanced_uploader); 56 this.ctrl.disable = $('<div class="cu-disable"></div>').append(cud).appendTo(this.ctrl.block);57 40 }, 58 41 flashReady: function() { … … 67 50 }); 68 51 }); 69 this.ctrl.block.append(this.ctrl.disable);70 52 }, 71 53 uploadSuccess: function(o,data) {
Note: See TracChangeset
for help on using the changeset viewer.