Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] r520 - in registry/trunk/app/View: CoPeople CoPersonRoles OrgIdentities

Subject: COmanage Developers List

List archive

[comanage-dev] r520 - in registry/trunk/app/View: CoPeople CoPersonRoles OrgIdentities


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r520 - in registry/trunk/app/View: CoPeople CoPersonRoles OrgIdentities
  • Date: Mon, 3 Jun 2013 23:40:27 -0400
  • Authentication-results: sfpop-ironport01.merit.edu; dkim=neutral (message not signed) header.i=none

Author: marie
Date: 2013-06-03 23:40:26 -0400 (Mon, 03 Jun 2013)
New Revision: 520

Modified:
registry/trunk/app/View/CoPeople/fields.inc
registry/trunk/app/View/CoPersonRoles/fields.inc
registry/trunk/app/View/OrgIdentities/fields.inc
Log:
CO613 Fixing tabs broken by jquery update

Modified: registry/trunk/app/View/CoPeople/fields.inc
===================================================================
--- registry/trunk/app/View/CoPeople/fields.inc 2013-05-28 03:58:10 UTC (rev
519)
+++ registry/trunk/app/View/CoPeople/fields.inc 2013-06-04 03:40:26 UTC (rev
520)
@@ -158,14 +158,23 @@
}

$(function() {
+ // Ennumeration for tabs
+ var tabid = new Object();
+ tabid["name"] = 0;
+ tabid["id"] = 1;
+ tabid["email"] = 2;
+ tabid["group"] = 3;
+ tabid["role"] = 4;
+ tabid["orgid"] = 5;
+
// Turn on Tabs
var $tabs = $( "#tabs" ).tabs();

// If returning to this page via redirect, open last used tab
<?php if(isset($this->request->params['named']['tab'])): ?>
var selectedtab = "<?php
print($this->request->params['named']['tab']); ?>";
- // The next line is still broken, see CO-613
- $tabs.tabs('option', 'active', '#tabs-' + selectedtab );
+
+ $tabs.tabs('option', 'active', tabid[selectedtab] );
<?php endif; ?>

// Autogenerate dialog

Modified: registry/trunk/app/View/CoPersonRoles/fields.inc
===================================================================
--- registry/trunk/app/View/CoPersonRoles/fields.inc 2013-05-28 03:58:10
UTC (rev 519)
+++ registry/trunk/app/View/CoPersonRoles/fields.inc 2013-06-04 03:40:26
UTC (rev 520)
@@ -67,14 +67,20 @@

<script>
$(function() {
+ // Ennumeration for tabs
+ var tabid = new Object();
+ tabid["role"] = 0;
+ tabid["phone"] = 1;
+ tabid["address"] = 2;
+
// Turn on Tabs
var $tabs = $( "#tabs" ).tabs();

// If returning to this page via redirect, open last used tab
<?php if(isset($this->request->params['named']['tab'])): ?>
var selectedtab = "<?php print($this->request->params['named']['tab']);
?>";
- // The next line is still broken, see CO-613
- $tabs.tabs('option', 'active', '#tabs-' + selectedtab );
+
+ $tabs.tabs('option', 'active', tabid[selectedtab] );
<?php endif; ?>
});
</script>

Modified: registry/trunk/app/View/OrgIdentities/fields.inc
===================================================================
--- registry/trunk/app/View/OrgIdentities/fields.inc 2013-05-28 03:58:10
UTC (rev 519)
+++ registry/trunk/app/View/OrgIdentities/fields.inc 2013-06-04 03:40:26
UTC (rev 520)
@@ -25,14 +25,22 @@

<script>
$(function() {
+ // Ennumeration for tabs
+ var tabid = new Object();
+ tabid["name"] = 0;
+ tabid["id"] = 1;
+ tabid["email"] = 2;
+ tabid["phone"] = 3;
+ tabid["address"] = 4;
+
// Turn on Tabs
var $tabs = $( "#tabs" ).tabs();

// If returning to this page via redirect, open last used tab
<?php if(isset($this->request->params['named']['tab'])): ?>
var selectedtab = "<?php print($this->request->params['named']['tab']);
?>";
- // The next line is still broken, see CO-613
- $tabs.tabs('option', 'active', '#tabs-' + selectedtab );
+
+ $tabs.tabs('option', 'active', tabid[selectedtab] );
<?php endif; ?>
});
</script>



  • [comanage-dev] r520 - in registry/trunk/app/View: CoPeople CoPersonRoles OrgIdentities, svnlog, 06/03/2013

Archive powered by MHonArc 2.6.16.

Top of Page