Changeset 241:2ff0aa311265 for admin/js/_media.js
- Timestamp:
- 05/11/11 16:33:24 (14 years ago)
- Branch:
- default
- Children:
- 243:c8413869f8dc, 244:c122cb3d47eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_media.js
r224 r241 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.