X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ftemplates%2Fdialogs%2Ftemplates.js;h=1fed05c484c2ae6856792dafddc91e29e1ed0b78;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=98c8feb88759c614a94fcfcd6e153788f7d8e7c6;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/templates/dialogs/templates.js b/_source/plugins/templates/dialogs/templates.js index 98c8feb..1fed05c 100644 --- a/_source/plugins/templates/dialogs/templates.js +++ b/_source/plugins/templates/dialogs/templates.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -15,7 +15,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // clear loading wait text. container.setHtml( '' ); - for ( var i = 0 ; i < templatesDefinitions.length ; i++ ) + for ( var i = 0, totalDefs = templatesDefinitions.length ; i < totalDefs ; i++ ) { var definition = CKEDITOR.getTemplates( templatesDefinitions[ i ] ), imagesPath = definition.imagesPath, @@ -41,10 +41,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license '' ); // Build the inner HTML of our new item DIV. - var html = ''; + var html = '
'; if ( template.image && imagesPath ) - html += ''; + html += ''; html += '