Changeset 15081
- Timestamp:
- 02/18/08 00:25:37 (8 months ago)
- Files:
-
- trunk/midcom/fi.hut.loginbroker/callbacks/prototypes.php (modified) (1 diff)
- trunk/midcom/midcom.admin.styleeditor/admin.php (modified) (19 diffs)
- trunk/midcom/midcom.admin.styleeditor/config/manifest.inc (modified) (3 diffs)
- trunk/midcom/midcom.admin.styleeditor/documentation/CHANGES (modified) (1 diff)
- trunk/midcom/midcom.admin.styleeditor/handler/create.php (modified) (3 diffs)
- trunk/midcom/midcom.admin.styleeditor/handler/edit.php (modified) (3 diffs)
- trunk/midcom/midcom.admin.styleeditor/handler/file.php (modified) (10 diffs)
- trunk/midcom/midcom.admin.styleeditor/handler/list.php (modified) (3 diffs)
- trunk/midcom/midcom.admin.styleeditor/locale/default.fi.txt (modified) (4 diffs)
- trunk/midcom/midcom.admin.styleeditor/navigation.php (modified) (1 diff)
- trunk/midcom/midcom.admin.styleeditor/style/midcom-admin-styleeditor-files-delete.php (modified) (1 diff)
- trunk/midcom/midcom.admin.styleeditor/viewer.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager/static/contactchooser_ajax.js (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/static/universalchooser.js (modified) (2 diffs)
- trunk/midcom/org.openpsa.contacts/config/mgdschema.sql (modified) (1 diff)
- trunk/midcom/org.openpsa.directmarketing/config/schemadb_config.inc (modified) (1 diff)
- trunk/midcom/org.openpsa.directmarketing/config/schemadb_default_message.inc (modified) (1 diff)
- trunk/midcom/org.openpsa.helpers/static/ajax_tableform.js (modified) (1 diff)
- trunk/midcom/org.openpsa.projects/static/projectbroker.js (modified) (2 diffs)
- trunk/support/clean_files.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/fi.hut.loginbroker/callbacks/prototypes.php
r14515 r15081 47 47 48 48 /** 49 * Helper to generate random string of printable characters of given leng ht50 * 51 * @param int $leng hthow many characters?49 * Helper to generate random string of printable characters of given length 50 * 51 * @param int $length how many characters? 52 52 * @return string of random garbage 53 53 */ trunk/midcom/midcom.admin.styleeditor/admin.php
r14773 r15081 1 1 <?php 2 2 3 /** 3 * Request class for editing styles 4 * Request class for editing styles 4 5 * @package midcom.admin.styleeditor 5 * 6 * 6 7 */ 7 8 8 /**9 *10 * @package midcom.admin.styleeditor11 */12 9 class midcom_admin_styleeditor_admin extends midcom_baseclasses_components_request_admin { 13 10 14 11 var $msg; 15 12 16 /** 17 * the current topic we are in 18 * 13 /* the current topic we are in 19 14 * @var current_topic 20 * @access public 21 * /15 * @access public 16 **/ 22 17 var $_current_topic = 0; 23 24 /** 25 * pointer to midcom_session_object 26 */ 18 /* pointer to midcom_session_object */ 27 19 var $_session = null; 28 20 29 21 /** 30 22 * The schema database associated with articles. 31 * 23 * 32 24 * @var Array 33 25 * @access private 34 26 */ 35 27 var $_schemadb = Array(); 36 37 38 function midcom_admin_styleeditor_viewer($topic, $config) 28 29 30 function midcom_admin_styleeditor_viewer($topic, $config) 39 31 { 40 32 //$page = mgd_get_object_by_guid($config->get("root_page")); 41 33 parent::midcom_baseclasses_components_request($topic, $config); 42 34 43 35 $this->msg = ""; 44 36 … … 47 39 48 40 function _on_initialize() { 49 50 41 42 51 43 $_MIDCOM->cache->content->no_cache(); 52 44 $_MIDCOM->auth->require_valid_user(); 53 54 // edit/<page>/topic gives you the root style. 45 46 // edit/<page>/topic gives you the root style. 55 47 $this->request_switch[] = Array 56 48 ( … … 79 71 ); 80 72 } 81 73 82 74 /** 83 75 * This function adds all of the standard items (configuration and create links) 84 76 * to the topic toolbar. 85 * 77 * 86 78 * @access private 87 79 */ … … 95 87 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_folder-properties.png', 96 88 MIDCOM_TOOLBAR_ENABLED => true, 97 MIDCOM_TOOLBAR_HIDDEN => 89 MIDCOM_TOOLBAR_HIDDEN => 98 90 ( 99 91 ! $_MIDCOM->auth->can_do('midgard:update', $this->_topic) … … 101 93 ) 102 94 )); 103 // this should be in article.php. 104 if (0) foreach (array_reverse($this->_schemadb_article_index, true) as $name => $desc) 105 { 95 // this should be in article.php. 96 if (0) foreach (array_reverse($this->_schemadb_article_index, true) as $name => $desc) 97 { 106 98 $text = sprintf($this->_l10n_midcom->get('create %s'), $desc); 107 99 $toolbar->top->add_item( 108 Array 100 Array 109 101 ( 110 MIDCOM_TOOLBAR_URL => "create/{$name}.html", 102 MIDCOM_TOOLBAR_URL => "create/{$name}.html", 111 103 MIDCOM_TOOLBAR_LABEL => $text, 112 104 MIDCOM_TOOLBAR_HELPTEXT => null, … … 116 108 ), 0); 117 109 } 118 110 119 111 $current_topic = $this->_current_topic; 120 // topic stuff 112 // topic stuff 121 113 $toolbar->top->add_item(Array( 122 114 MIDCOM_TOOLBAR_URL => "styleeditor/topic/create/{$current_topic}", … … 139 131 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/topic-score.png', 140 132 MIDCOM_TOOLBAR_ENABLED => true 141 )); 133 )); 142 134 $toolbar->top->add_item(Array( 143 135 MIDCOM_TOOLBAR_URL => "styleeditor/topic/delete/{$current_topic}", … … 155 147 MIDCOM_TOOLBAR_ENABLED => true 156 148 )); 157 158 159 } 160 149 150 151 } 152 161 153 function _prepare_meta_toolbar() 162 154 { … … 164 156 165 157 // First, we retrieve a metadata object for the currently active object. 166 // We can only create a toolbar if and only if 158 // We can only create a toolbar if and only if 167 159 $nav = new midcom_helper_nav($this->_context); 168 160 $nap_obj = null; … … 181 173 return; 182 174 } 183 175 184 176 if (mgd_is_topic_owner($topic->id)) 185 177 { 186 187 178 179 188 180 $prefix = "{$this->viewdata['admintopicprefix']}meta/{$nap_obj[MIDCOM_NAV_GUID]}"; 189 181 190 182 $toolbar->add_item(Array( 191 183 MIDCOM_TOOLBAR_URL => null, … … 195 187 MIDCOM_TOOLBAR_ENABLED => false, 196 188 )); 197 189 198 190 if ($meta->is_approved()) 199 191 { … … 216 208 )); 217 209 } 218 210 219 211 if ($meta->get('hide')) 220 212 { … … 237 229 )); 238 230 } 239 231 240 232 $toolbar->add_item(Array( 241 233 MIDCOM_TOOLBAR_URL => "{$prefix}/edit.html", … … 245 237 MIDCOM_TOOLBAR_ENABLED => true, 246 238 )); 247 239 248 240 $start = $meta->get('schedule_start'); 249 241 $end = $meta->get('schedule_end'); … … 251 243 { 252 244 $now = time(); 253 245 254 246 $text = ''; 255 247 if ($start && $end) … … 269 261 strftime("%x %X", $end)); 270 262 } 271 263 272 264 if ( (! $start || $start <= $now) 273 265 && (! $end || $end >= $now)) … … 279 271 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/scheduled_and_shown.png', 280 272 MIDCOM_TOOLBAR_ENABLED => false, 281 )); 273 )); 282 274 } 283 275 else … … 289 281 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/scheduled_but_hidden.png', 290 282 MIDCOM_TOOLBAR_ENABLED => false, 291 )); 292 } 293 } 294 } 295 } 296 297 /** 298 * @return boolean Indicating success. 299 */ 283 )); 284 } 285 } 286 } 287 } 288 300 289 function _handler_index() { 301 290 302 291 return true; 303 } 304 292 } 293 305 294 function _show_index() { 306 295 midcom_show_style('index'); 307 296 } 308 309 297 298 310 299 /** 311 300 * Display the content, it uses the handler as determined by can_handle. 312 * This overrides the basic show method of the class to include the ais style around the component. 313 * 314 * @see _on_show() 301 * This overrides the basic show method of the class to include the ais style around the component. 302 * 303 * @see _on_show(); 315 304 */ 316 305 function show() 317 306 { 318 307 debug_push_class($this, 'show'); 319 320 321 308 309 310 322 311 // Call the event handler 323 312 $result = $this->_on_show($this->_handler['id']); … … 328 317 return; 329 318 } 330 319 331 320 // Call the handler: 332 321 $handler =& $this->_handler['handler'][0]; 333 322 $method = "_show_{$this->_handler['handler'][1]}"; 334 323 335 324 $handler->$method($this->_handler['id'], $this->_request_data); 336 325 debug_pop(); trunk/midcom/midcom.admin.styleeditor/config/manifest.inc
r15038 r15081 2 2 'description' => 'Style editor for Midgard style templates', 3 3 'purecode' => true, 4 'version' => '0.3.0 beta1',4 'version' => '0.3.0', 5 5 'privileges' => array(), 6 6 'class_definitions' => array(), … … 25 25 'dependencies' => array 26 26 ( 27 'midcom.admin.help' ,27 'midcom.admin.help' => array(), 28 28 'midcom' => array(), 29 29 ), 30 30 ), 31 'state' => ' beta',31 'state' => 'stable', 32 32 'customdata' => array 33 33 ( … … 36 36 'class' => 'midcom_admin_styleeditor_viewer', 37 37 'src' => 'file:/midcom/admin/styleeditor/viewer.php', 38 'name' => ' midcom.admin.styleeditor',38 'name' => 'Style Editor', 39 39 'config' => '', 40 40 ), trunk/midcom/midcom.admin.styleeditor/documentation/CHANGES
r13624 r15081 6 6 not guaranteed to be backwards compatible to previous versions 7 7 which might even break existing functionality. 8 - All items marked with "+" represent complet ely new features.8 - All items marked with "+" represent completly new features. 9 9 10 10 2007-03-21 trunk/midcom/midcom.admin.styleeditor/handler/create.php
r14388 r15081 147 147 * @param string $handler_id Name of the used handler 148 148 * @param mixed $args Array containing the variable arguments passed to the handler 149 * @param mixed &$data Data passed to the show method149 * @param mixed $data Data passed to the show method 150 150 * @return boolean Indicating successful request 151 151 */ … … 208 208 ) 209 209 ); 210 211 $data['asgard_toolbar']->add_item212 (213 array214 (215 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX),216 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('back to site', 'midgard.admin.asgard'),217 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/gohome.png',218 )219 );220 221 $data['asgard_toolbar']->add_item222 (223 array224 (225 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX)."midcom-logout-",226 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('logout','midcom'),227 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/exit.png',228 )229 );230 231 210 232 211 // Add the page title … … 241 220 * @access private 242 221 * @param string $handler_id Name of the used handler 243 * @param mixed &$data Data passed to the show method222 * @param mixed $data Data passed to the show method 244 223 */ 245 224 function _show_create($handler_id, &$data) trunk/midcom/midcom.admin.styleeditor/handler/edit.php
r14773 r15081 185 185 * @param string $handler_id Name of the used handler 186 186 * @param mixed $args Array containing the variable arguments passed to the handler 187 * @param mixed &$data Data passed to the show method187 * @param mixed $data Data passed to the show method 188 188 * @return boolean Indicating successful request 189 189 */ … … 301 301 ) 302 302 ); 303 304 $data['asgard_toolbar']->add_item305 (306 array307 (308 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX),309 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('back to site', 'midgard.admin.asgard'),310 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/gohome.png',311 )312 );313 314 $data['asgard_toolbar']->add_item315 (316 array317 (318 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX)."midcom-logout-",319 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('logout','midcom'),320 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/exit.png',321 )322 );323 303 324 304 // Add the page title … … 333 313 * @access private 334 314 * @param string $handler_id Name of the used handler 335 * @param mixed &$data Data passed to the show method315 * @param mixed $data Data passed to the show method 336 316 */ 337 317 function _show_edit($handler_id, &$data) trunk/midcom/midcom.admin.styleeditor/handler/file.php
r14388 r15081 61 61 } 62 62 63 64 function _prepare_toolbar(&$data)65 {66 67 // Set the Asgard toolbar68 $data['asgard_toolbar'] = new midcom_helper_toolbar();69 70 $data['asgard_toolbar']->add_item71 (72 array73 (74 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/",75 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'),76 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png',77 )78 );79 $data['asgard_toolbar']->add_item80 (81 array82 (83 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/",84 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'),85 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png',86 )87 );88 89 $data['asgard_toolbar']->add_item90 (91 array92 (93 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX),94 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('back to site', 'midgard.admin.asgard'),95 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/gohome.png',96 )97 );98 99 $data['asgard_toolbar']->add_item100 (101 array102 (103 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX)."midcom-logout-",104 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('logout','midcom'),105 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/exit.png',106 )107 );108 109 }110 111 63 /** 112 64 * Rewrite a filename to URL safe form 113 65 * 114 * @param string $filenamefile name to rewrite66 * @param $filename string file name to rewrite 115 67 * @return string rewritten filename 116 68 */ … … 382 334 * @param string $handler_id Name of the used handler 383 335 * @param mixed $args Array containing the variable arguments passed to the handler 384 * @param mixed &$data Data passed to the show method336 * @param mixed $data Data passed to the show method 385 337 * @return boolean Indicating successful request 386 338 */ … … 415 367 $_MIDCOM->skip_page_style = true; 416 368 417 $this->_prepare_toolbar($data); 418 369 // Set the Asgard toolbar 370 $data['asgard_toolbar'] = new midcom_helper_toolbar(); 371 372 $data['asgard_toolbar']->add_item 373 ( 374 array 375 ( 376 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 377 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 378 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 379 ) 380 ); 381 $data['asgard_toolbar']->add_item 382 ( 383 array 384 ( 385 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 386 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 387 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 388 ) 389 ); 390 419 391 // Add the page title 420 392 $data['view_title'] = $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'); … … 428 400 * @access private 429 401 * @param string $handler_id Name of the used handler 430 * @param mixed &$data Data passed to the show method402 * @param mixed $data Data passed to the show method 431 403 */ 432 404 function _show_new($handler_id, &$data) … … 450 422 * @param string $handler_id Name of the used handler 451 423 * @param mixed $args Array containing the variable arguments passed to the handler 452 * @param mixed &$data Data passed to the show method424 * @param mixed $data Data passed to the show method 453 425 * @return boolean Indicating successful request 454 426 */ … … 500 472 // Add the page title 501 473 $data['view_title'] = sprintf($_MIDCOM->i18n->get_string('edit file %s', 'midcom.admin.styleeditor'), "'{$args[0]}'"); 502 503 $this->_prepare_toolbar($data); 474 475 // Set the Asgard toolbar 476 $data['asgard_toolbar'] = new midcom_helper_toolbar(); 477 478 $data['asgard_toolbar']->add_item 479 ( 480 array 481 ( 482 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 483 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 484 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 485 ) 486 ); 487 $data['asgard_toolbar']->add_item 488 ( 489 array 490 ( 491 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 492 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 493 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 494 ) 495 ); 504 496 505 497 return true; … … 511 503 * @access private 512 504 * @param string $handler_id Name of the used handler 513 * @param mixed &$data Data passed to the show method505 * @param mixed $data Data passed to the show method 514 506 */ 515 507 function _show_edit($handler_id, &$data) … … 534 526 * @param string $handler_id Name of the used handler 535 527 * @param mixed $args Array containing the variable arguments passed to the handler 536 * @param mixed &$data Data passed to the show method528 * @param mixed $data Data passed to the show method 537 529 * @return boolean Indicating successful request 538 530 */ … … 590 582 $data['view_title'] = sprintf($_MIDCOM->i18n->get_string('delete file %s', 'midcom.admin.styleeditor'), "'{$args[0]}'"); 591 583 592 $this->_prepare_toolbar($data); 584 // Set the Asgard toolbar 585 $data['asgard_toolbar'] = new midcom_helper_toolbar(); 586 587 $data['asgard_toolbar']->add_item 588 ( 589 array 590 ( 591 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 592 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 593 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 594 ) 595 ); 596 $data['asgard_toolbar']->add_item 597 ( 598 array 599 ( 600 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 601 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 602 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 603 ) 604 ); 593 605 594 606 return true; … … 600 612 * @access private 601 613 * @param string $handler_id Name of the used handler 602 * @param mixed &$data Data passed to the show method614 * @param mixed $data Data passed to the show method 603 615 */ 604 616 function _show_delete($handler_id, &$data) trunk/midcom/midcom.admin.styleeditor/handler/list.php
r14773 r15081 103 103 * @param string $handler_id Name of the used handler 104 104 * @param mixed $args Array containing the variable arguments passed to the handler 105 * @param mixed &$data Data passed to the show method105 * @param mixed $data Data passed to the show method 106 106 * @return boolean Indicating successful request 107 107 */ … … 134 134 ); 135 135 136 $data['asgard_toolbar']->add_item137 (138 array139 (140 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX),141 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('back to site', 'midgard.admin.asgard'),142 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/gohome.png',143 )144 );145 146 $data['asgard_toolbar']->add_item147 (148 array149 (150 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX)."midcom-logout-",151 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('logout','midcom'),152 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/exit.png',153 )154 );155 136 156 137 // Set the variables … … 205 186 * @access private 206 187 * @param string $handler_id Name of the used handler 207 * @param mixed &$data Data passed to the show method188 * @param mixed $data Data passed to the show method 208 189 */ 209 190 function _show_list($handler_id, &$data) trunk/midcom/midcom.admin.styleeditor/locale/default.fi.txt
r13956 r15081 20 20 ---STRINGEND 21 21 22 ---STRING confirm delete of file %s23 Vahvista tiedoston '%s' poisto24 ---STRINGEND25 26 22 ---STRING copy to editor 27 23 Kopioi editoriin 28 ---STRINGEND29 30 ---STRING create a new element31 Luo uusi elementti32 ---STRINGEND33 34 ---STRING delete cancelled35 Poisto peruutettu36 ---STRINGEND37 38 ---STRING delete file %s39 Poista tiedosto '%s'40 24 ---STRINGEND 41 25 … … 54 38 ---STRING edit text file 55 39 Muokkaa tekstitiedostoa 56 ---STRINGEND57 58 ---STRING element %s exists59 Elementti '%s' on olemassa60 ---STRINGEND61 62 ---STRING element from file63 Tuo elementti tiedostosta64 ---STRINGEND65 66 ---STRING element name67 Elementin nimi68 ---STRINGEND69 70 ---STRING element name required71 Elementin nimi on pakollinen72 ---STRINGEND73 74 ---STRING file %s deleted75 Tiedosto '%s' poistettu76 40 ---STRINGEND 77 41 … … 120 84 ---STRINGEND 121 85 122 ---STRING style element %s created123 Tyylielementti %s luotu124 ---STRINGEND125 126 ---STRING style element %s updated127 Tyylielementti %s pÀivitetty128 ---STRINGEND129 130 86 ---STRING style element list 131 87 Tyylielementtilista … … 148 104 ---STRINGEND 149 105 150 ---STRING create new element 106 ---STRING confirm delete of file %s 107 Vahvista tiedoston '%s' poisto 108 ---STRINGEND 109 110 ---STRING create a new element 151 111 Luo uusi elementti 152 112 ---STRINGEND 153 113 154 ---STRING new layout template155 Uusi ulkoasupohja 114 ---STRING delete cancelled 115 Poisto peruutettu 156 116 ---STRINGEND 157 117 118 ---STRING delete file %s 119 Poista tiedosto '%s' 120 ---STRINGEND 121 122 ---STRING element %s exists 123 Elementti '%s' on olemassa 124 ---STRINGEND 125 126 ---STRING element from file 127 Tuo elementti tiedostosta 128 ---STRINGEND 129 130 ---STRING element name 131 Elementin nimi 132 ---STRINGEND 133 134 ---STRING element name required 135 Elementin nimi on pakollinen 136 ---STRINGEND 137 138 ---STRING file %s deleted 139 Tiedosto '%s' poistettu 140 ---STRINGEND 141 142 ---STRING style element %s created 143 Tyylielementti %s luotu 144 ---STRINGEND 145 146 ---STRING style element %s updated 147 Tyylielementti %s pÀivitetty 148 ---STRINGEND 149 trunk/midcom/midcom.admin.styleeditor/navigation.php
r14773 r15081 5 5 * @package midcom.admin.styleeditor 6 6 */ 7 8 /** 9 * 10 * @package midcom.admin.styleeditor 11 */ 7 12 8 class midcom_admin_styleeditor_navigation extends midcom_baseclasses_components_navigation { 13 9 /* hey that's all I do too !' */ trunk/midcom/midcom.admin.styleeditor/style/midcom-admin-styleeditor-files-delete.php
r11346 r15081 1 <h1><?php echo sprintf($_MIDCOM->i18n->get_string('delete file %s', 'midcom.admin.styleeditor'), $data['filename']); ?></h1>1 <h1><?php echo sprintf($_MIDCOM->i18n->get_string('delete file %s', 'midcom.admin.styleeditor'), $data['filename']); ?></h1> 2 2 <p><?php echo sprintf($_MIDCOM->i18n->get_string('confirm delete of file %s', 'midcom.admin.styleeditor'), $data['filename']); ?></p> 3 3 <?php trunk/midcom/midcom.admin.styleeditor/viewer.php
r14773 r15081 108 108 ); 109 109 } 110 function navigation()111 {112 /*113 $prefix = $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX);114 115 // Get list of style elements related to this component116 $style_elements = $_MIDCOM->style->get_component_default_elements($this->_request_data['topic']->component);117 ksort($style_elements);118 echo "<ul class=\"midgard_admin_asgard_navigation\">";119 foreach ($style_elements as $style_element => $filename)120 {121 echo "<li class='midcom_baseclasses_database_style'><a href=\"{$prefix}__mfa/asgard_midcom.admin.styleeditor/edit/{$style_element}/\"><({$style_element})></a></li>";122 }123 echo "</ul>";124 */125 }126 127 110 } 128 111 ?> trunk/midcom/midcom.helper.datamanager/static/contactchooser_ajax.js
r13625 r15081 120 120 persons = compat_getElementsByTagNameNS('http://xmlns.com/foaf/0.1/', 'foaf', 'Person', resultList); 121 121 if ( !persons 122 || persons.leng ht==0)122 || persons.length==0) 123 123 { 124 124 //No results, do something trunk/midcom/midcom.helper.datamanager2/static/universalchooser.js
r13416 r15081 274 274 { 275 275 statuses = request.responseXML.getElementsByTagName('status'); 276 if ( statuses.leng ht< 1276 if ( statuses.length < 1 277 277 || !statuses[0]) 278 278 { … … 284 284 message_str = ''; 285 285 286 if ( messages.leng ht> 0286 if ( messages.length > 0 287 287 && messages[0] 288 288 && messages[0].firstChild) trunk/midcom/org.openpsa.contacts/config/mgdschema.sql
r4744 r15081 35 35 36 36 #These will be implemented in Midgard core/data as well in the near future 37 #Increase username leng ht37 #Increase username length 38 38 alter table person modify username varchar(255) NOT NULL default ''; 39 39 #Increase parameter value size (not needed anymore) trunk/midcom/org.openpsa.directmarketing/config/schemadb_config.inc
r3840 r15081 68 68 ), 69 69 'token_size' => array( 70 'description' => 'recipient token leng ht',70 'description' => 'recipient token length', 71 71 'datatype' => 'number', 72 72 'default' => 15, trunk/midcom/org.openpsa.directmarketing/config/schemadb_default_message.inc
r12102 r15081 261 261 'from' => array 262 262 ( 263 'title' => 'from text/number (text max leng ht11 characters, no special characters)',263 'title' => 'from text/number (text max length 11 characters, no special characters)', 264 264 'type' => 'text', 265 265 'widget' => 'text', trunk/midcom/org.openpsa.helpers/static/ajax_tableform.js
r4794 r15081 529 529 items = resultList.getElementsByTagName(this.ajaxResultElement); 530 530 531 if (items.leng ht== 0)531 if (items.length == 0) 532 532 { 533 533 //No results, do something trunk/midcom/org.openpsa.projects/static/projectbroker.js
r14180 r15081 99 99 { 100 100 statuses = request.responseXML.getElementsByTagName('status'); 101 if ( statuses.leng ht< 1101 if ( statuses.length < 1 102 102 || !statuses[0]) 103 103 { … … 109 109 message_str = ''; 110 110 111 if ( messages.leng ht> 0111 if ( messages.length > 0 112 112 && messages[0] 113 113 &
