1/** //** ----= ___ =----------------------------------------------------------------------------------------------\**//** \ 2* 3* Shortcut to console.log() 4* 5* @param MIXED * - Variables to dump. 6* 7\**//** ----------------------------------------------------------------------------------------------= by Mr.V!T =----/** //**/ 8function ___() { 9 10 console.log.apply(console, arguments); 11 12} //FUNC ___ 13 14function mwError (msg) { 15 return '<div class="status error">' + msg + '</div>'; 16} //FUNC mwError 17 18function mwSuccess (msg) { 19 return '<div class="status success">' + msg + '</div>'; 20} //FUNC mwSuccess 21 22function mwHint (msg) { 23 return '<div class="status hint">' + msg + '</div>'; 24} //FUNC mwHint 25 26function mwWarning (msg) { 27 return '<div class="status warning">' + msg + '</div>'; 28} //FUNC mwWarning 29 30function mwFormToggle ($form, $target, $state) { 31 32 // Makikng sure it's jQuery 33 $form = _jq($form); 34 35 // One of form elements can be provided instead of form itself 36 // Checking if that's the case. 37 if ( !$form.is('form') ) 38 $form = $form.closest('form'); 39 40 // Searching target on form 41 var $tEl = $form.find($target); 42 43 // Toggling 44 if ( !isEmpty($state) ) 45 $tEl.show(); 46 else 47 $tEl.hide(); 48 49} //FUNC mwFormToggle 50 51/*--------------------------------------------------------------------------------*\ 52| updateDimensions 53|---------------------------------------------------------------------------------- 54| Updates current dimensions setting for future use. 55| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 56| Params: 57| NONE 58| Return: 59| NULL 60\*--------------------------------------------------------------= by Mr.V!T =-----*/ 61function updateDimensions () { 62 63 var wnd = screenSize(); 64 var desktop_height = wnd.height - jQuery('#HintBarContainer').height() - jQuery('#NavigationContainer').height(); 65 66 setCookie('mwWorkSpaceWidth', wnd.width); 67 setCookie('mwWorkSpaceHeight', desktop_height); 68 69} //FUNC updateDimensions 70/*/ 71function initLTRows () { 72 jQuery('.ListingTable TR:even').addClass('Even'); 73} //FUNC initLTRows 74/**/ 75 76/*--------------------------------------------------------------------------------*\ 77| pulseAncor 78|---------------------------------------------------------------------------------- 79| Pulsates given block. 80| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 81| Params: 82| ancor string - Block name to pulsate. 83| Return: 84| bool - Always FALSE. 85\*--------------------------------------------------------------= by Mr.V!T =-----*/ 86function pulseAncor (ancor) { 87 88 // DEPRECATED, left just as dummy 89 return false; 90 91 if ( !ancor ) 92 return false; 93 94 jQuery('A[name='+ancor+']').effect('pulsate'); 95 96 return false; 97} //FUNC pulseAncor 98 99/*--------------------------------------------------------------------------------*\ 100| initDatePicker 101|---------------------------------------------------------------------------------- 102| Initiates DatePickers on page. 103| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 104| Params: 105| NONE 106| Return: 107| bool - Always false. 108\*--------------------------------------------------------------= by Mr.V!T =-----*/ 109function initDatePicker () { 110 111 Date.format = 'yyyy-mm-dd'; 112 113 jQuery('INPUT.Date').each( function () { 114 115 var el = jQuery(this); 116 117 el.datePicker({clickInput:true, createButton:false, startDate: '2000-01-01'}); 118 // el.dpSetSelected(el.val()); 119 120 }); //jQuery each 121 122 return false; 123} //FUNC initDatePicker 124 125/*--------------------------------------------------------------------------------*\ 126| updateAjaxLinks 127|---------------------------------------------------------------------------------- 128| Updates page links wich should be loaded using AJAX. 129| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 130| Params: 131| NONE 132| Return: 133| bool - Always FALSE. 134\*--------------------------------------------------------------= by Mr.V!T =-----*/ 135function updateAjaxLinks () { 136 jQuery('A.ajax').each( function () { 137 this.onload = this.onclick; 138 this.onclick = ''; 139 }); 140 jQuery('A.ajax').unbind('click'); 141 jQuery('A.ajax').click( function() { 142 return pageAjax(this); 143 }); //FUNC click 144 145} //FUNC updateAjaxLinks 146
147var mwPerson = { 148 149 /** //** ----= getTitle =----------------------------------------------\**//** \ 150 * 151 * Attempts to retrieve person title name to show in dialogs. 152 * 153 * @param object person - Person data object. 154 * @param string [template] - Custom template to use. 155 * 156 * @return string - Contact title. 157 * 158 \**//** ------------------------------------= by Mr.V!T @ Morad Media Inc. =----/** //**/ 159 getTitle : function (person, template) { 160 161 template = template || '{name} {first_name} {last_name} {firstname} {lastname}'; 162 163 return parseVariables(template, person).multiClean().trim(); 164 }, //FUNC getName 165 166 /** //** ----= getEmail =----------------------------------------------\**//** \ 167 * 168 * Attempts to retrieve person email to show in dialogs. 169 * 170 * @param object person - Person data object. 171 * 172 * @return string - Contact title. 173 * 174 \**//** ------------------------------------= by Mr.V!T @ Morad Media Inc. =----/** //**/ 175 getEmail : function (person) { 176 return arraySelectValue(person, ['email', 'mail'], '').trim(); 177 } //FUNC getName 178 179} //OBJECT mwPerson
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.