Changeset 26603 for extensions/AdminTools/template/public_controller.js
- Timestamp:
- Jan 10, 2014, 7:37:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdminTools/template/public_controller.js
r26061 r26603 32 32 // fill multiview selects 33 33 // data came from AJAX request or sessionStorage 34 function populateMultiView($target) { 35 if ($target.data('init')) return; 34 function populateMultiView() { 35 var $multiview = $ato.find('.multiview'); 36 37 if ($multiview.data('init')) return; 36 38 37 39 var render = function(data) { … … 40 42 html+= '<option value="'+ user.id +'">'+ user.username +'</option>'; 41 43 }); 42 $ target.find('select[data-type="view_as"]').html(html)44 $multiview.find('select[data-type="view_as"]').html(html) 43 45 .val(__this.multiView.view_as); 44 46 … … 47 49 html+= '<option value="'+ theme +'">'+ theme +'</option>'; 48 50 }); 49 $ target.find('select[data-type="theme"]').html(html)51 $multiview.find('select[data-type="theme"]').html(html) 50 52 .val(__this.multiView.theme); 51 53 … … 54 56 html+= '<option value="'+ language.id +'">'+ language.name +'</option>'; 55 57 }); 56 $ target.find('select[data-type="lang"]').html(html)58 $multiview.find('select[data-type="lang"]').html(html) 57 59 .val(__this.multiView.lang); 58 60 59 $target.data('init', true); 61 $multiview.data('init', true); 62 63 $multiview.find('.switcher').show(); 60 64 }; 61 65 … … 130 134 'click': function() { 131 135 if ($(this).hasClass('multiview')) { 132 populateMultiView( $(this).find('ul'));136 populateMultiView(); 133 137 } 134 138 $(this).find('ul').toggle();
Note: See TracChangeset
for help on using the changeset viewer.