Lines Matching defs:opt

179         jQuery.each(opts, function (_, opt) {
182 .attr('id', 'media__' + opt.id);
189 .text(opt.label);
192 jQuery.each(opt.btns, function (i, text) {
196 .attr('id', "media__" + opt.id + "btn" + (i + 1))
198 .on('click', bind(dw_mediamanager.setOpt, opt.id));
201 .attr('src', DOKU_BASE + 'lib/images/media_' + opt.id + '_' + text + '.png');
385 set_fileview_opt: function (opt, new_val) {
387 new_val = jQuery('form.options li.' + opt[1] + ' input')
395 if (new_val !== dw_mediamanager.view_opts[opt[0]]) {
396 opt[2](new_val);
398 DokuCookie.setValue(opt[0], new_val);
400 dw_mediamanager.view_opts[opt[0]] = new_val;
784 function (_, opt) {
788 .attr('id', 'media__' + opt[0])
789 .on('click', bind(dw_mediamanager.toggleOption, opt[0]));
791 if (DokuCookie.getValue(opt[0])) {
793 dw_mediamanager[opt[0]] = true;
797 .attr('for', 'media__' + opt[0])
798 .text(LANG[opt[1]]);
839 setOpt: function (opt, e) {
844 val = dw_mediamanager.getOpt(opt);
848 DokuCookie.setValue(opt, '');
849 dw_mediamanager[opt] = false;
853 if (opt === 'link') {
865 DokuCookie.setValue(opt, val);
866 dw_mediamanager[opt] = val;
869 jQuery("#media__" + opt + "btn" + i).removeClass('selected');
871 jQuery('#media__' + opt + 'btn' + val).addClass('selected');
882 allowedOpt: function (opt, val) {
886 ret = forbids[opt] !== false &&
887 jQuery.inArray(val, forbids[opt]) === -1;
893 getOpt: function (opt) {
894 var allowed = bind(dw_mediamanager.allowedOpt, opt);
897 if (dw_mediamanager[opt] !== false && allowed(dw_mediamanager[opt])) {
898 return dw_mediamanager[opt];
902 if (DokuCookie.getValue(opt) && allowed(DokuCookie.getValue(opt))) {
903 return DokuCookie.getValue(opt);
907 if (opt === 'size' && allowed('2')) {