\n";
+ txt += "" + this._("Server") + ": | " + res['server'] + " |
\n";
+ txt += "" + this._("Status") + ": | " + status + " |
\n";
+ // show this only if quota is enabled
+ if (res['quota'])
+ {
+ txt += "" + this._("Quota") + ": | " + this._("active") + " |
\n";
+ }
+ txt += "" + this._("Location") + ": | " + res['location'] + " |
\n";
+ txt += "" + this._("Description") + ": | " + res['description'] + " |
\n";
+ txt += "
\n";
+
+ this._head.getWidget('message').set('content',txt);
+
+ // show/hide corresponding buttons
+
+ this._show_button('activate',res['status'] == 'disabled');
+ this._show_button('deactivate',res['status'] == 'enabled');
+ this._show_button('editquota',res['quota']);
+ this._show_button('submit',false); // always invisible.
+
+ this.layout(); // whenever you change a non-center region of a BorderLayout...
+ }),
+ dojo.hitch(this, function(data) {
+ this._grid.filter(); // clears stale grid data
+ })
+ );
+
+ // read job list
+ this._grid.filter({printer:this._printer_id});
+ },
+
+ _show_button: function(button,on) {
+
+ try
+ {
+ dojo.toggleClass(this._head._buttons[button].domNode,'dijitHidden',!on);
+ }
+ catch(ex)
+ {
+ console.error("show_button(" + button + "," + on + "): " + ex.message);
+ }
+ },
+
+ _manage_callback: function(success,message) {
+
+ if (success)
+ {
+ this._refresh_view();
+ }
+ else
+ {
+ umc.dialog.alert(message);
+ }
+ },
+
+ // main module listens here, to carry out direct printer
+ // management functions.
+ managePrinter: function(printer,func,arg) {
+ },
+
+ // main module listens here to return to the overview.
+ // args are passed back to the Overview page.
+ closeDetail: function(args) {
+ // force clean state
+ this._head.getWidget('message').set('content','