Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | if ( ! ( 'section' in data ) ) { |
42 | 42 | continue; |
43 | 43 | } |
44 | | - var $section = context.modules.toolbar.$toolbar.find( 'div[rel=' + data.section + '].section' ); |
| 44 | + var $section = context.modules.toolbar.$toolbar.find( 'div[rel="' + data.section + '"].section' ); |
45 | 45 | for ( var group in data[type] ) { |
46 | 46 | // Group |
47 | 47 | $section.append( |
— | — | @@ -54,7 +54,7 @@ |
55 | 55 | continue; |
56 | 56 | } |
57 | 57 | var $group = context.modules.toolbar.$toolbar.find( |
58 | | - 'div[rel=' + data.section + '].section ' + 'div[rel=' + data.group + '].group' |
| 58 | + 'div[rel="' + data.section + '"].section ' + 'div[rel=' + data.group + '].group' |
59 | 59 | ); |
60 | 60 | for ( var tool in data[type] ) { |
61 | 61 | // Tool |
— | — | @@ -70,10 +70,10 @@ |
71 | 71 | continue; |
72 | 72 | } |
73 | 73 | var $pages = context.modules.toolbar.$toolbar.find( |
74 | | - 'div[rel=' + data.section + '].section .pages' |
| 74 | + 'div[rel="' + data.section + '"].section .pages' |
75 | 75 | ); |
76 | 76 | var $index = context.modules.toolbar.$toolbar.find( |
77 | | - 'div[rel=' + data.section + '].section .index' |
| 77 | + 'div[rel="' + data.section + '"].section .index' |
78 | 78 | ); |
79 | 79 | for ( var page in data[type] ) { |
80 | 80 | // Page |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | continue; |
93 | 93 | } |
94 | 94 | var $table = context.modules.toolbar.$toolbar.find( |
95 | | - 'div[rel=' + data.section + '].section ' + 'div[rel=' + data.page + '].page table' |
| 95 | + 'div[rel="' + data.section + '"].section ' + 'div[rel=' + data.page + '].page table' |
96 | 96 | ); |
97 | 97 | for ( i = 0; i < data.rows.length; i++ ) { |
98 | 98 | // Row |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | continue; |
106 | 106 | } |
107 | 107 | var $characters = context.modules.toolbar.$toolbar.find( |
108 | | - 'div[rel=' + data.section + '].section ' + 'div[rel=' + data.page + '].page div' |
| 108 | + 'div[rel="' + data.section + '"].section ' + 'div[rel="' + data.page + '"].page div' |
109 | 109 | ); |
110 | 110 | var actions = $characters.data( 'actions' ); |
111 | 111 | for ( i = 0; data.character.length; i++ ) { |
— | — | @@ -147,25 +147,25 @@ |
148 | 148 | removeFromToolbar : function( context, data ) { |
149 | 149 | if ( typeof data.section == 'string' ) { |
150 | 150 | // Section |
151 | | - var tab = 'div.tabs span[rel=' + data.section + '].tab'; |
152 | | - var target = 'div[rel=' + data.section + '].section'; |
| 151 | + var tab = 'div.tabs span[rel="' + data.section + '"].tab'; |
| 152 | + var target = 'div[rel="' + data.section + '"].section'; |
153 | 153 | var group = null; |
154 | 154 | if ( typeof data.group == 'string' ) { |
155 | 155 | // Toolbar group |
156 | | - target += ' div[rel=' + data.group + '].group'; |
| 156 | + target += ' div[rel="' + data.group + '"].group'; |
157 | 157 | if ( typeof data.tool == 'string' ) { |
158 | 158 | // Save for later checking if empty |
159 | 159 | group = target; |
160 | 160 | // Tool |
161 | | - target += ' span[rel=' + data.tool + '].tool'; |
| 161 | + target += ' span[rel="' + data.tool + '"].tool'; |
162 | 162 | } |
163 | 163 | } else if ( typeof data.page == 'string' ) { |
164 | 164 | // Booklet page |
165 | | - var index = target + ' div.index div[rel=' + data.page + ']'; |
166 | | - target += ' div.pages div[rel=' + data.page + '].page'; |
| 165 | + var index = target + ' div.index div[rel="' + data.page + '"]'; |
| 166 | + target += ' div.pages div[rel="' + data.page + '"].page'; |
167 | 167 | if ( typeof data.character == 'string' ) { |
168 | 168 | // Character |
169 | | - target += ' span[rel=' + data.character + ']'; |
| 169 | + target += ' span[rel="' + data.character + '"]'; |
170 | 170 | } else if ( typeof data.row == 'number' ) { |
171 | 171 | // Table row |
172 | 172 | target += ' table tr:not(:has(th)):eq(' + data.row + ')'; |
— | — | @@ -719,14 +719,14 @@ |
720 | 720 | if ( selected != null ) { |
721 | 721 | $.cookie( cookie, selected, { expires: 30, path: '/' } ); |
722 | 722 | } |
723 | | - var $selectedIndex = $index.find( '*[rel=' + selected + ']' ); |
| 723 | + var $selectedIndex = $index.find( '*[rel="' + selected + '"]' ); |
724 | 724 | if ( $selectedIndex.size() === 0 ) { |
725 | 725 | $selectedIndex = $index.children().eq( 0 ); |
726 | 726 | selected = $selectedIndex.attr( 'rel' ); |
727 | 727 | $.cookie( cookie, selected, { expires: 30, path: '/' } ); |
728 | 728 | } |
729 | 729 | $pages.children().hide(); |
730 | | - $pages.find( '*[rel=' + selected + ']' ).show(); |
| 730 | + $pages.find( '*[rel="' + selected + '"]' ).show(); |
731 | 731 | $index.children().removeClass( 'current' ); |
732 | 732 | $selectedIndex.addClass( 'current' ); |
733 | 733 | }, |