|
From: Jon O. <jon...@us...> - 2007-04-28 19:45:20
|
Update of /cvsroot/mxbb/mx_bugsbt/bugsbt/includes/js
In directory sc8-pr-cvs16:/tmp/cvs-serv19440
Modified Files:
init_main.js management.js.php
Log Message:
fixes
Index: init_main.js
===================================================================
RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/includes/js/init_main.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** init_main.js 15 Feb 2007 12:43:49 -0000 1.1
--- init_main.js 28 Apr 2007 19:45:17 -0000 1.2
***************
*** 9,12 ****
--- 9,13 ----
window.onload = initialize;
+ /*
tree.textClickListener.add(function() {
if (document.getElementById("tree-insert-form").style.display == "block") {
***************
*** 14,17 ****
--- 15,19 ----
}
});
+ */
tree.textClickListener.add(function() {
***************
*** 106,109 ****
--- 108,112 ----
var treeTooltips = ["Move Up", "Move Down", "Move Left", "Move Right", "Insert", "Delete"];
+ /*
function treeTooltipOn() { document.getElementById("tree-tooltip").innerHTML = treeTooltips[treeElements.indexOf(this.id)]; }
function treeTooltipOff() { document.getElementById("tree-tooltip").innerHTML = ""; }
***************
*** 131,134 ****
--- 134,138 ----
document.getElementById("tree-insert-button").onclick = treeInsertExecute;
document.getElementById("tree-insert-cancel").onclick = treeHideInsert;
+ */
function treeMoveUp() {
Index: management.js.php
===================================================================
RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/includes/js/management.js.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** management.js.php 15 Feb 2007 12:43:49 -0000 1.1
--- management.js.php 28 Apr 2007 19:45:17 -0000 1.2
***************
*** 58,73 ****
function tabsSavingOff() { }
! function viewBugs() {
! //if (!tree.active || !tree.getActiveNode().isDocument()) {
! //alert("You have to select a document in the Tree View to perform this action.");
! //return;
! //}
checkContentSaved();
AjaxRequest.get(
{
'url':'modules/mx_bugsbt/bugsbt/modules/tabs/bugsbt__tab-index.php'
! ,'parameters':{ 'mode':'product', 'cat':escape(treeGetId().substr(treeGetId().lastIndexOf("/")+1)), 'block_id':mxBlock.block_id, 'page_id':mxBlock.page_id }
,'onLoading':function() { clearTabs(); tabsLoadingOn(); }
,'onComplete':function() { tabsLoadingOff(); }
--- 58,92 ----
function tabsSavingOff() { }
! function viewBugs(sort) {
checkContentSaved();
+ var cat = tree.active ? escape(treeGetId().substr(treeGetId().lastIndexOf("/")+1)) : '';
+ var limit = '';
+ var sort_method = 'Id';
+
+ switch (sort){
+ case 'all':
+ var cat = '';
+ var sort_method = 'Id';
+ break;
+
+ case 'latest':
+ var cat = '';
+ var limit = '10';
+ var sort_method = 'Latest';
+ break;
+
+ case 'last_updated':
+ var cat = '';
+ var limit = '10';
+ var sort_method = 'Last_updated';
+ break;
+ }
+
AjaxRequest.get(
{
'url':'modules/mx_bugsbt/bugsbt/modules/tabs/bugsbt__tab-index.php'
! ,'parameters':{ 'mode':'product', 'cat':cat, 'limit':limit, 'sort_method':sort_method, 'block_id':mxBlock.block_id, 'page_id':mxBlock.page_id }
,'onLoading':function() { clearTabs(); tabsLoadingOn(); }
,'onComplete':function() { tabsLoadingOff(); }
***************
*** 129,133 ****
function viewBug(bug_id) {
! if ( !bug_id && (typeof current_bug_id == "undefined") ) {
alert("You have to select a Bug to perform this action.");
return;
--- 148,152 ----
function viewBug(bug_id) {
! if ( !bug_id && (typeof current_bug_id == "undefined") ) {
alert("You have to select a Bug to perform this action.");
return;
|