Changeset ab8fdaa in github
- Timestamp:
- Jul 31, 2012 4:27:37 AM (11 months ago)
- Children:
- b6267dad
- Parents:
- 56012e5
- File:
-
- 1 edited
-
program/js/app.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/js/app.js
r56012e5 rab8fdaa 5361 5361 }; 5362 5362 5363 // enable/disable buttons for page shifting5364 this.set_page_buttons = function()5365 {5366 this.enable_command('nextpage', 'lastpage', (this.env.pagecount > this.env.current_page));5367 this.enable_command('previouspage', 'firstpage', (this.env.current_page > 1));5368 };5369 5370 5363 // set event handlers on registered buttons 5371 5364 this.init_buttons = function() … … 5375 5368 continue; 5376 5369 5377 for (var i=0; i< this.buttons[cmd].length; i++) {5370 for (var i=0; i<this.buttons[cmd].length; i++) { 5378 5371 init_button(cmd, this.buttons[cmd][i]); 5379 5372 } … … 5394 5387 obj = document.getElementById(button.id); 5395 5388 5389 if (!obj) 5390 continue; 5391 5396 5392 // get default/passive setting of the button 5397 if ( obj &&button.type == 'image' && !button.status) {5393 if (button.type == 'image' && !button.status) { 5398 5394 button.pas = obj._original_src ? obj._original_src : obj.src; 5399 5395 // respect PNG fix on IE browsers … … 5401 5397 button.pas = RegExp.$1; 5402 5398 } 5403 else if ( obj &&!button.status)5399 else if (!button.status) 5404 5400 button.pas = String(obj.className); 5405 5401 5406 5402 // set image according to button state 5407 if ( obj &&button.type == 'image' && button[state]) {5403 if (button.type == 'image' && button[state]) { 5408 5404 button.status = state; 5409 5405 obj.src = button[state]; 5410 5406 } 5411 5407 // set class name according to button state 5412 else if ( obj &&button[state] !== undefined) {5408 else if (button[state] !== undefined) { 5413 5409 button.status = state; 5414 5410 obj.className = button[state]; 5415 5411 } 5416 5412 // disable/enable input buttons 5417 if ( obj && button.type=='input') {5413 if (button.type == 'input') { 5418 5414 button.status = state; 5419 5415 obj.disabled = !state; … … 5638 5634 }; 5639 5635 5636 // enable/disable buttons for page shifting 5637 this.set_page_buttons = function() 5638 { 5639 this.enable_command('nextpage', 'lastpage', (this.env.pagecount > this.env.current_page)); 5640 this.enable_command('previouspage', 'firstpage', (this.env.current_page > 1)); 5641 }; 5642 5640 5643 // mark a mailbox as selected and set environment variable 5641 5644 this.select_folder = function(name, prefix, encode)
Note: See TracChangeset
for help on using the changeset viewer.
