Changeset 1068
- Timestamp:
- 02/20/08 04:34:45
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneTabs/trunk/skins/qPloneTabs/javascripts/qplonetabs.js
r779 r1068 10 10 '#app #reorder' : function(el){ 11 11 el.onclick = function(ev){ 12 var ev = ev ?ev:window.event;12 var ev = ev ? ev : window.event; 13 13 gBeforeReorderFragment = document.getElementById('tabslist').innerHTML; 14 14 shiftClassNames('app', 'viewing', 'sorting'); … … 31 31 lis.each(function(el,idx){ 32 32 inputs(el).each(function(inpt){ 33 inpt.type =='hidden'?inpt.value=idx:inpt.name=inpt.name.replace(/i\d+_/, 'i'+idx+'_');33 inpt.type == 'hidden' ? inpt.value = idx : inpt.name = inpt.name.replace(/i\d+_/, 'i'+idx+'_'); 34 34 }); 35 35 }); … … 47 47 '#app #cancel' : function(el){ 48 48 el.onclick = function(ev){ 49 var ev = ev ?ev:window.event;49 var ev = ev ? ev : window.event; 50 50 Sortable.destroy('tabslist'); 51 51 shiftClassNames('app', 'sorting', 'viewing'); 52 52 Element.update('tabslist', gBeforeReorderFragment); 53 el.attachEvent ? ieHover() :'';53 el.attachEvent ? ieHover() : ''; 54 54 Behaviour.apply(); 55 55 Event.stop(ev); … … 374 374 375 375 function removeEdition(el) { 376 var el = el ?el:'tabslist';377 $A($(el).getElementsByTagName('LI')).each(function(li,idx){if(li != el) li.onclick= '';});378 }; 376 var el = el ? el : 'tabslist'; 377 $A($(el).getElementsByTagName('LI')).each(function(li,idx){if(li != el) li.onclick=function(event){return false;};}); 378 }; qPloneTabs/trunk/skins/qPloneTabs/qplonetabs.css.dtml
r779 r1068 36 36 #app #addaction.adding .field-id, 37 37 #app #addaction.adding .field-condition, 38 #app #addaction.adding .add-controls {display: block;} 38 #app #addaction.adding .add-controls { 39 display: block; 40 } 39 41 40 42 #app #busy, … … 55 57 #app .field-id, 56 58 #app .field-condition, 57 #app .add-controls {display: none;} 59 #app .add-controls { 60 display: none; 61 } 58 62 59 63 #app.working #busy, … … 64 68 #app ul#roottabs.csshover li:hover .visibility, 65 69 #app ul#roottabs.csshover li.onHover .visibility, 66 #app.sorting .drag-handle {display: inline;} 70 #app.sorting .drag-handle { 71 display: inline; 72 } 67 73 68 74 /**********************************************************/ 69 75 70 #app.sorting #tabslist img.drag-handle {cursor: move;} 71 72 #app .invisible span.tab-title {color:#aaa;} 76 #app.sorting #tabslist img.drag-handle { 77 cursor: move; 78 } 79 80 #app .invisible span.tab-title { 81 color:#aaa; 82 } 73 83 74 84 /*common***************************************************/ … … 129 139 position:absolute; 130 140 right:0; 141 margin-left:20%; 131 142 padding-right:0.5em; 143 overflow:hidden; 132 144 font-size:80%; 133 145 color:#aaa; 146 text-align: right; 147 width: 80%; 148 134 149 } 135 150
