Changeset 2547 for trunk/phpgwapi
- Timestamp:
- 04/15/10 11:19:50 (14 years ago)
- Location:
- trunk/phpgwapi
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.common.inc.php
r2473 r2547 1232 1232 $GLOBALS['phpgw']->js->validate_file('wz_dragdrop','wz_dragdrop'); 1233 1233 1234 echo " <script type='text/javascript'>var URL_SERVER = '".$GLOBALS['phpgw_info']['server']['webserver_url']."';</script>";1234 echo "\n<script type='text/javascript'>var URL_SERVER = '".$GLOBALS['phpgw_info']['server']['webserver_url']."';</script>\n"; 1235 1235 echo $GLOBALS['phpgw']->js->get_script_links(); 1236 1236 -
trunk/phpgwapi/inc/class.javascript.inc.php
r2545 r2547 134 134 if ($GLOBALS['phpgw_info']['server']['jspacker'] == "True") 135 135 { 136 require_once('class.JavaScriptPacker.php'); 137 $script = file_get_contents(PHPGW_INCLUDE_ROOT .SEP .$app .SEP .'js' .SEP . $pkg .SEP. $file . '.js'); 138 $packer = new JavaScriptPacker($script, 'Normal', true, false); 139 $packed = $packer->pack(); 140 $links .= "<script>".$packed."</script>\n"; 141 } 136 $filePath=PHPGW_INCLUDE_ROOT.SEP.$app.SEP.'js'.SEP.$pkg.SEP.$file.'.js'; 137 if (!file_exists($filePath."pack.js")) 138 { 139 $fp = fopen($filePath."pack.js", 'w'); 140 $script = file_get_contents($filePath); 141 require_once('class.JavaScriptPacker.php'); 142 $packer = new JavaScriptPacker($script, 'Normal', true, false); 143 $packed = $packer->pack(); 144 fwrite($fp, $packed); 145 fclose($fp); 146 } 147 $links .= '<script type="text/javascript" src="' 148 .$GLOBALS['phpgw_info']['server']['webserver_url'] 149 ."/$app/js/$pkg/$file" . ".jspack.js\"></script>\n"; 150 } 142 151 else 143 152 { -
trunk/phpgwapi/js/dJSWin
-
Property
svn:ignore
set to
*.jspack.js
-
Property
svn:ignore
set to
-
trunk/phpgwapi/js/dJSWin/dJSWin.js
r144 r2547 37 37 { 38 38 is_ie = false; 39 is_ie5 = false 39 is_ie5 = false; 40 40 is_moz1_6 = false; 41 41 is_mozilla = false; … … 338 338 /* Turn the attribute visible false */ 339 339 this.visible = false; 340 } 340 }; 341 341 342 342 dJSWin.prototype.open = function() … … 368 368 /* Turn the attribute visible true */ 369 369 this.visible = true; 370 } 370 }; 371 371 372 372 dJSWin.prototype.show = function() 373 373 { 374 374 this.open(); 375 } 375 }; 376 376 377 377 dJSWin.prototype.hide = function() 378 378 { 379 379 this.close(); 380 } 380 }; 381 381 382 382 dJSWin.prototype.moveTo = function(x,y) 383 383 { 384 384 dd.elements[this.title.id].moveTo(x,y); 385 } 385 }; 386 386 387 387 dJSWin.prototype.x = function() 388 388 { 389 389 return dd.elements[this.title.id].x; 390 } 390 }; 391 391 392 392 dJSWin.prototype.y = function() 393 393 { 394 394 return dd.elements[this.title.id].y; 395 } 395 }; 396 396 397 397 dJSWin.prototype.draw = function() … … 464 464 465 465 dd.elements[this.title.id].hide(); 466 } 466 }; 467 467 468 468 function _dJSWinElement(id) … … 480 480 throw("Browser Not Supported!"); 481 481 } 482 } 482 }; 483 483 484 484 if (!dd.elements) -
trunk/phpgwapi/js/dTabs
-
Property
svn:ignore
set to
*.jspack.js
-
Property
svn:ignore
set to
-
trunk/phpgwapi/js/dftree
-
Property
svn:ignore
set to
*.jspack.js
-
Property
svn:ignore
set to
-
trunk/phpgwapi/js/dftree/dftree.js
r1375 r2547 80 80 //cons = COokie of Node Status 81 81 //setCookie("cons"+this.id,this._io); 82 } 82 }; 83 83 84 84 dNode.prototype.open = function () { … … 99 99 this._refresh(); 100 100 } 101 } 101 }; 102 102 103 103 … … 112 112 this._refresh(); 113 113 } 114 } 114 }; 115 115 116 116 //alter node label and other properties … … 124 124 } 125 125 } 126 } 126 }; 127 127 128 128 //css and dhtml refresh part … … 156 156 //alter onLoad, etc 157 157 158 } 158 }; 159 159 160 160 //gets the proper plus for this moment … … 183 183 } 184 184 } 185 } 185 }; 186 186 187 187 //changes node to selected style class. Perform further actions. … … 218 218 } 219 219 220 } 220 }; 221 221 222 222 //changes node background color. … … 231 231 captionSpan.style.paddingBottom = '0px'; 232 232 } 233 } 233 }; 234 234 //changes node background color. 235 235 dNode.prototype._onMouseOut = function() … … 243 243 captionSpan.style.paddingBottom = '1px'; 244 244 } 245 } 245 }; 246 246 247 247 //changes node to unselected style class. Perform further actions. … … 258 258 captionSpan.className = this.captionClass; 259 259 } 260 } 260 }; 261 261 262 262 … … 359 359 parentChildrenDiv.appendChild(divN); 360 360 } 361 } 361 }; 362 362 363 363 // TREE … … 407 407 } 408 408 } 409 } 409 }; 410 410 411 411 dFTree.prototype.draw = function(dest_element) { … … 426 426 } 427 427 428 } 428 }; 429 429 430 430 //Transforms tree in HTML code … … 443 443 this._drawBranch(this.root.children); 444 444 }*/ 445 } 445 }; 446 446 447 447 //Recursive function, draws children … … 453 453 this._drawBranch(childrenArray[a]._children); 454 454 } 455 } 455 }; 456 456 457 457 //add into a position … … 515 515 } 516 516 517 } 517 }; 518 518 519 519 //arrayProps: same properties of Node 520 520 dFTree.prototype.alter = function(arrayProps) { 521 521 this.getNodeById(arrayProps['id']).alter(arrayProps); 522 } 522 }; 523 523 524 524 dFTree.prototype.getNodeById = function(nodeid) { 525 525 return this._aNodes[this._searchNode(nodeid)]; 526 } 526 }; 527 527 528 528 dFTree.prototype.openTo = function(nodeid) … … 535 535 this.openTo(node._parent.id); 536 536 } 537 } 537 }; 538 538 539 539 //Searches for a node in the node array, returning the position of the array 4it … … 548 548 } 549 549 return false; 550 } 550 }; 551 551 // By jakjr, retorna um array com os ids de todas as pastas (nodes) 552 552 dFTree.prototype.getNodesList = function(imapDelimiter) { … … 572 572 } 573 573 return nodes; 574 } 574 }; 575 575 576 576 //Auxiliar functions … … 591 591 } 592 592 return false; 593 } 593 }; 594 594 595 595 // [Cookie] Clears a cookie … … 637 637 } 638 638 return "<img "+attributes+" src=\""+src+"\">"; 639 } 639 }; -
trunk/phpgwapi/js/expressoAjax
-
Property
svn:ignore
set to
*.jspack.js
-
Property
svn:ignore
set to
-
trunk/phpgwapi/js/jscalendar
-
Property
svn:ignore
set to
*.jspack.js
-
Property
svn:ignore
set to
-
trunk/phpgwapi/js/jscalendar/lang
-
Property
svn:ignore
set to
*.jspack.js
-
Property
svn:ignore
set to
-
trunk/phpgwapi/js/tools
-
Property
svn:ignore
set to
*.jspack.js
-
Property
svn:ignore
set to
-
trunk/phpgwapi/js/venus
-
Property
svn:ignore
set to
*.jspack.js
-
Property
svn:ignore
set to
-
trunk/phpgwapi/js/wz_dragdrop
-
Property
svn:ignore
set to
*.jspack.js
-
Property
svn:ignore
set to
Note: See TracChangeset
for help on using the changeset viewer.