Last modified by Admin on 2010/05/19 20:19

From version 1.1 Icon
edited by Admin
on 2008/11/21 07:56
Change comment: Imported from XAR
To version Icon 2.1
edited by Admin
on 2010/05/19 20:19
Change comment: Imported from XAR

Summary

Details

Icon Page properties
Content
... ... @@ -1,4 +1,5 @@
1 1  {{include document="Blog.CategoriesCode"/}}
2 +
2 2  {{velocity filter="none"}}
3 3  {{html clean="false" wiki="true"}}
4 4  #set($space = "$!request.space")
Icon XWiki.JavaScriptExtension[0]
Code
... ... @@ -105,7 +105,7 @@
105 105   form._x_item = item;
106 106   item.up('.blog-category-tools').insert({after : form});
107 107   var category = form.down('input[name=category]');
108 - category.value = decodeURIComponent(item.href.substring(item.href.indexOf('category=') + 9));
108 + category.value = decodeURIComponent(item.href.substring(item.href.indexOf('category=') + 9).replace(/\+/g, ' '));
109 109   this.activateForm(form);
110 110   },
111 111   ajaxifyRenameForm : function(form) {
... ... @@ -237,7 +237,8 @@
237 237   select.selectedIndex = 0;
238 238   if (item.hasClassName('tool')) {
239 239   item.up('.blog-category-tools').insert({after : form});
240 - var option = select.down('option[value=' + decodeURIComponent(item.href.substring(item.href.indexOf('parentCategory=') + 15)) + ']');
240 + var selector = 'option[value=\'' + decodeURIComponent(item.href.substring(item.href.indexOf('parentCategory=') + 15).replace(/\+/g, ' ')).replace(/\\/g, "\\\\").replace(/'/g, "\\'") + '\']';
241 + var option = select.down(selector);
241 241   if (option) {
242 242   select.selectedIndex = option.index;
243 243   }

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.BlogParameters]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.BlogCode]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.RecentPostsPanel]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.BlogParameters]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.BlogCode]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.UnpublishedPanel]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.BlogParameters]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.BlogCode]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.CategoriesCode]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.CategoriesPanel]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.BlogParameters]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.BlogCode]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [webid:Blog.ArchivePanel]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.