Refactor entryproperties media db button.
Hard-coded input without inline JS, external onclick handler, hide button on no-js. References #54
This commit is contained in:
@ -863,6 +863,11 @@ var AccessifyHTML5 = function (defaults, more_fixes) {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$('.customfieldMedia').click(function() {
|
||||
var configitem = $(this).parent().find('textarea').attr('id');
|
||||
serendipity.choose_media(configitem);
|
||||
});
|
||||
|
||||
$('#tree_toggle_all').click(function(e) {
|
||||
e.preventDefault();
|
||||
serendipity.treeToggleAll();
|
||||
|
@ -1932,6 +1932,7 @@ form > .button_link:first-of-type,
|
||||
.no-js .pluginmanager_grablet,
|
||||
.no-js .image_resize_hint,
|
||||
.no-js #serendipityScaleForm > .form_check,
|
||||
.no-js .customfieldMedia,
|
||||
.js .additional_info,
|
||||
.installer .toggle_info,
|
||||
.hidden,
|
||||
|
Reference in New Issue
Block a user