Changeset 12445 for modules/branches/2.10/core
- Timestamp:
- 08/29/11 08:02:24 (2 years ago)
- Files:
-
- modules/branches/2.10/core/assets/css/core.css (modified) (1 diff)
- modules/branches/2.10/core/assets/js/advancedsettings.js (modified) (1 diff)
- modules/branches/2.10/core/module.xml (modified) (3 diffs)
- modules/branches/2.10/core/page.advancedsettings.php (modified) (4 diffs)
- modules/branches/2.10/core/page.routing.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.10/core/assets/css/core.css
r12426 r12445 1 .text-watermark { 2 color: #CCCCCC; 3 } 4 .dpt-title { 5 color: #CCCCCC; 6 } 7 .text-normal { 8 color: inherit; 9 } 1 10 2 div.dialpatterns { 11 3 max-height: 15em; modules/branches/2.10/core/assets/js/advancedsettings.js
r12426 r12445 34 34 dataType: 'json', 35 35 success: function(data, textStatus, XMLHttpRequest) { 36 //console.log(data); 36 37 mythis.attr({src: 'images/accept.png'}); 37 38 if (!data.validated) { modules/branches/2.10/core/module.xml
r12070 r12445 2 2 <rawname>core</rawname> 3 3 <repo>standard</repo> 4 <type>setup</type> 5 <category>Basic</category> 4 <category>Apps</category> 6 5 <name>Core</name> 7 6 <version>2.9.0.0</version> … … 19 18 *2.9.0rc1.1* #5011, #5017, #5033 20 19 *2.9.0rc1.0* #4987, #4989, #5000, #4998, #4995 21 *2.9.0beta2.3* #4937, #4977, #497022 *2.9.0beta2.2* #4968, other cosmectic changes23 *2.9.0beta2.1* #493624 *2.9.0beta2.0* #4804, #4908, #493325 *2.9.0beta1.9* #4001, #491426 *2.9.0beta1.8* #490227 *2.9.0beta1.7* #4137, #462028 *2.9.0beta1.6* #4890, #211029 *2.9.0beta1.5* #488830 *2.9.0beta1.4* #488031 *2.9.0beta1.3* #4656, #4821, #4798, #4872, #4401, #461932 *2.9.0beta1.2* #422433 *2.9.0beta1.1* #778, #4804, #4809, #4812, #4576, #4334, #4815, #389334 *2.9.0alpha1.7* #4608, #4790, #4788, #480035 *2.9.0alpha1.6* #4774, #4775, #4776, #3784, #444036 *2.9.0alpha1.5* #4733, #4469, #4740, #4962, #4744, #4749, #4752, #4753, #4758, #4760, #4299, #156537 *2.9.0alpha1.4* #4648,#4653,#4453,#4563,#4445,#4617,#4654,#4332,#4652,#4684,#4681,#4689,#4701,#4697,#4702,#4697,#4472,#4710,#4655,#4730,#4566,#473338 *2.9.0alpha1.3* #4580, #4599, #4600, #4615, #4633, #4634, #464539 *2.9.0alpha1.2* #4401, #4525, #4507, #4499, #4574, #4572, #4575, #4527, #446940 *2.9.0alpha1.1* #4443, #4444, #4460, #441441 *2.9.0alpha1.0* bump to 2.942 *2.8.0.1* #442643 *2.8.0.0* #439644 *2.8.0.0RC1.4* #439045 *2.8.0.0RC1.3* #438046 *2.8.0.0RC1.2* #4379 again47 *2.8.0.0RC1.1* #4378, #437948 *2.8.0.0RC1.0* #437449 *2.8.0.0beta2.4* #4350, #435750 *2.8.0.0beta2.3* #433851 *2.8.0.0beta2.2* #4309, remove legacy directory settings if no IVRs using them52 *2.8.0.0beta2.1* #429353 *2.8.0.0beta2.0* #4273, #4230, #4242, #4196, #3519, #4288, #4270, #421954 *2.8.0.0beta1.9* #4205, #4208, #4155, #421255 *2.8.0.0beta1.8* #420256 *2.8.0.0beta1.7* #4174, #4190, #4201, #416157 *2.8.0.0beta1.6* #4181, #418458 *2.8.0.0beta1.5* #415559 *2.8.0.0beta1.4* #4071, #4152, #4156, #4159, #416060 *2.8.0.0beta1.3* #415161 *2.8.0.0beta1.2* #4146, #4148, triming local changelog62 *2.8.0.0beta1.1* #4132, #2833, #4068, #4135, #4143, #414463 *2.8.0.0beta1.0* #4100, #4102, #4110 New Outbound Routing Schema and features64 *2.7.0.2* really fix #409265 *2.7.0.1* #4093, #4094, #4095, #409266 *2.7.0.0* minor tweaks67 *2.7.0RC1.5* #4075, #4078, #4080, #405368 *2.7.0RC1.4* #407269 *2.7.0RC1.3* #4068, (#4069 available but not used)70 *2.7.0RC1.2* #406771 *2.7.0RC1.1* #4058, #4065, #406672 *2.7.0RC1.0* #4041, #4042, #4047, #4051 (requires MoH 2.7.0.0 or above)73 *2.7.0beta1.3* #403774 *2.7.0beta1.2* #3993 (#3934, #3889)75 *2.7.0beta1.1* #4020, #2389, #3980, #3992, #3939, #333, #3721, #318576 *2.7.0beta1.0* #3882, #4000, #1718, #3927, #3805, #4007, #3998, #3951, sql injections fixes77 *2.6.0.1* #3889 reverted, #3900, #3962, #2787, #3793, #3377, #3386, #371778 *2.6.0.0* #3889, #391979 *2.6.0RC2.1* #3886, #3885, #3875 revisited80 *2.6.0RC2.0* #3854, #3872, #3871, #387781 *2.6.0RC1.1* #375182 *2.6.0RC1.0* #3529, #3864, #353883 *2.6.0beta2.2* #3722, #3848, #3841, #370084 *2.6.0beta2.1* #3844 (revert #3423), #3846, #384985 *2.6.0beta2.0* #3075, #3501, #3636, #3581, #3266, #3701, #3545, #3430, #3798, #3609, #383686 *2.6.0beta1.3* trunk tab improvements87 *2.6.0beta1.2* added more sql escape in devices88 *2.6.0beta1.1* #3696, (needs framework updated), #3702, #3706, #3712, #3691, #3693, #3705, #3644, #3739, #3741, #3744, #379089 *2.6.0beta1.0* #3478, #3423, #3648, #3685, #3686, #138090 *2.6.0alpha1.4* fixes re #364991 *2.6.0alpha1.3* #3653, #3591, #365092 *2.6.0alpha1.2* #3451, $932, #3426, #3474, #3439, #3526, #3534, $3648, #3649, #3517 moved macro-vm to auto-generation (WARNING: custom modification of macro-vm in extensions_custom.conf need to be moved to extensions_override_freepbx.conf93 *2.6.0alpha1.1* #3380, #3358, #3387, localizations94 *2.6.0alpha1.0* #3321, #3328, #3345 inbound CID routing fix, adds vm-callme voicemail access option95 *2.5* CHANGELOG TRUNCATED See SVN Repository96 20 </changelog> 97 21 <depends> … … 102 26 </requirements> 103 27 <menuitems> 104 <extensions needsenginedb="yes" sort="-4">Extensions</extensions>105 <users needsenginedb="yes" sort="-3">Users</users>106 <devices needsenginedb="yes" sort="-4">Devices</devices>107 <did category=" Inbound Call Control" sort="-5">Inbound Routes</did>108 <zapchandids category=" Inbound Call Control" sort="-5">Zap Channel DIDs</zapchandids>109 <routing >Outbound Routes</routing>110 <trunks >Trunks</trunks>111 <general >General Settings</general>112 <advancedsettings category=" Advanced Administration" type="tool" sort="-9">Advanced Settings</advancedsettings>113 <ampusers sort="5">Administrators</ampusers>114 <wiki type="tool" category="Support" sort="5" href="http://freepbx.org" target="_blank" access="all">FreePBX Support</wiki>28 <extensions needsenginedb="yes">Extensions</extensions> 29 <users needsenginedb="yes">Users</users> 30 <devices needsenginedb="yes">Devices</devices> 31 <did category="Call Flow">Inbound Routes</did> 32 <zapchandids category="Call Flow">Zap Channel DIDs</zapchandids> 33 <routing category="Call Flow">Outbound Routes</routing> 34 <trunks category="Call Flow">Trunks</trunks> 35 <general category="Settings">General Settings</general> 36 <advancedsettings category="Settings">Advanced Settings</advancedsettings> 37 <ampusers category="Admin">Administrators</ampusers> 38 <wiki category="Admin" href="http://freepbx.org" target="_blank" access="all">FreePBX Support</wiki> 115 39 </menuitems> 116 40 <location>release/2.9/core-2.9.0.0.tgz</location> modules/branches/2.10/core/page.advancedsettings.php
r12065 r12445 12 12 $freepbx_conf->set_conf_values(array($keyword => trim($var['value'])),true,$amp_conf['AS_OVERRIDE_READONLY']); 13 13 $status = $freepbx_conf->get_last_update_status(); 14 if ($var['send_reload'] && $status[$keyword]['saved']) {14 /*if ($var['send_reload'] && $status[$keyword]['saved']) { 15 15 ob_start(); 16 16 include ('views/freepbx_reloadbar.php'); … … 20 20 include ('views/freepbx_reload.php'); 21 21 $status[$keyword]['reload_header'] = ob_get_clean(); 22 } 22 }*/ 23 23 if ($status[$keyword]['saved']) { 24 24 freepbx_log(FPBX_LOG_INFO,sprintf(_("Advanced Settings changed freepbx_conf setting: [$keyword] => [%s]"),$var['value'])); … … 32 32 case 'ASTMANAGERPROXYPORT': 33 33 case 'AMPMGRUSER': 34 $astman->Command('module reload manager');34 //$astman->Command('module reload manager'); 35 35 break; 36 36 } … … 38 38 } 39 39 echo json_encode($status[$keyword]); 40 exit; 40 41 } 41 42 exit; modules/branches/2.10/core/page.routing.php
r12426 r12445 180 180 case 'ajaxroutepos': 181 181 core_routing_setrouteorder($repotrunkkey, $repotrunkdirection); 182 needreload(); 183 include_once("common/json.inc.php"); 184 if ($_POST['send_reload'] == 'yes') { 185 ob_start(); 186 include ('views/freepbx_reloadbar.php'); 187 $json_array['reload_bar'] = ob_get_clean(); 188 189 ob_start(); 190 include ('views/freepbx_reload.php'); 191 $json_array['reload_header'] = ob_get_clean(); 192 } 193 $json_array['show_reload'] = 'yes'; 194 $json = new Services_JSON(); 195 header("Content-type: application/json"); 196 echo $json->encode($json_array); 182 needreload(); 183 184 header("Content-type: application/json"); 185 echo json_encode($json_array); 197 186 exit; 198 187 … … 323 312 var repotrunkkey=+ui.item.attr('id').replace('routelist',''); 324 313 var repotrunkdirection=ui.item.index();repotrunkdirection--; 325 var send_reload = '&send_reload='+($('#need_reload_block').size() == 0 ? 'yes':'no');326 314 $.ajax({ 327 315 type: 'POST', 328 316 url: location.href, 329 data: "action=ajaxroutepos&quietmode=1&skip_astman=1&restrictmods=core&repotrunkkey="+repotrunkkey+"&repotrunkdirection="+repotrunkdirection +send_reload,317 data: "action=ajaxroutepos&quietmode=1&skip_astman=1&restrictmods=core&repotrunkkey="+repotrunkkey+"&repotrunkdirection="+repotrunkdirection, 330 318 dataType: 'json', 331 319 success: function(data) { 332 /* if the reload_block is not there, we blindly insert the info we think we got because we told 333 it in the ajax call to send it to use, should wo double check? 334 */ 335 if ((data.show_reload == 'yes') && !$('#need_reload_block').fadeIn().size()) { 336 $('#logo').after(data.reload_bar).fadeIn(); 337 $('#moduleBox').before(data.reload_header); 338 } 339 if (data.show_reload == 'yes') { 340 $('#need_reload_block').fadeIn(); 341 } 320 toggle_reload_button('show'); 342 321 }, 343 322 error: function(data) { … … 796 775 }); 797 776 $('#pattern_file').hide(); 798 $(".dpt-nodisplay").mouseover(function(){799 $(this).toggleVal({800 populateFrom: "title",801 changedClass: "text-normal",802 focusClass: "text-normal"803 }).removeClass('dpt-nodisplay').unbind('mouseover');804 });805 777 }); 806 778 … … 833 805 </tr>\ 834 806 ').prev(); 835 836 new_insert.find(".dpt-title").toggleVal({837 populateFrom: "title",838 changedClass: "text-normal",839 focusClass: "text-normal"840 });841 807 842 808 return idx; … … 936 902 } 937 903 if (culprit != undefined) { 938 // now we have to put it back...939 // do I have to turn it off first though?940 $(".dpt-display").each(function() {941 if ($.trim($(this).val()) == '') {942 $(this).toggleVal({943 populateFrom: "title",944 changedClass: "text-normal",945 focusClass: "text-normal"946 });947 }948 });949 904 return warnInvalid(culprit, msgInvalidDialPattern); 950 905 } else {
