Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing js issue: placeholder id on plugin-list-holder was not set.

  • Loading branch information...
commit e151dbd250fdfde828fac02f212f560a1f857004 1 parent 9fb62e1
@benzkji authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 cms/static/cms/js/plugin_editor.js
View
7 cms/static/cms/js/plugin_editor.js
@@ -2,6 +2,11 @@
$(document).ready(function() {
// Add Plugin Handler
$.fn.cmsPatchCSRF();
+ $('div.plugin-list-holder').each(function() {
+ // placeholder id is 'placeholder-PK'
+ var my_id = $(this).attr('id').split('-');
+ $(this).data('id', my_id[1]);
+ });
$('span.add-plugin').click(function(){
var select = $(this).parent().children("select[name=plugins]");
var pluginvalue = select.attr('value');
@@ -180,4 +185,4 @@ function loadPluginForm(target, id){
$('#iframe_'+id).parent().html("<p>"+msg+"</p>");
}
-})(jQuery);
+})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.