www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

storagefilebox.xml (2187B)


      1 <?xml version="1.0"?>
      2 <!--
      3     ***** BEGIN LICENSE BLOCK *****
      4     
      5     Copyright © 2009 Center for History and New Media
      6                      George Mason University, Fairfax, Virginia, USA
      7                      http://zotero.org
      8     
      9     This file is part of Zotero.
     10     
     11     Zotero is free software: you can redistribute it and/or modify
     12     it under the terms of the GNU Affero General Public License as published by
     13     the Free Software Foundation, either version 3 of the License, or
     14     (at your option) any later version.
     15     
     16     Zotero is distributed in the hope that it will be useful,
     17     but WITHOUT ANY WARRANTY; without even the implied warranty of
     18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19     GNU Affero General Public License for more details.
     20     
     21     You should have received a copy of the GNU Affero General Public License
     22     along with Zotero.  If not, see <http://www.gnu.org/licenses/>.
     23     
     24     ***** END LICENSE BLOCK *****
     25 -->
     26 
     27 <!DOCTYPE bindings SYSTEM "chrome://zotero/locale/zotero.dtd">
     28 
     29 <bindings xmlns="http://www.mozilla.org/xbl"
     30 		  xmlns:xbl="http://www.mozilla.org/xbl"
     31 		  xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     32 	
     33 	<binding id="storage-file-box"
     34 			extends="chrome://zotero/content/bindings/attachmentbox.xml#attachment-box">
     35 		
     36 		<implementation>
     37 			<property name="mode" onget="return this._mode;">
     38 				<setter>
     39 				<![CDATA[
     40 					this.editable = false;
     41 					this.displayGoButtons = false;
     42 					this.clickableLink = false;
     43 					this.displayIndexed = false;
     44 					this.displayPages = false;
     45 					this.displayNote = false;
     46 					
     47 					switch (val) {
     48 						case 'merge':
     49 							this.displayFileName = true;
     50 							this.displayButton = true;
     51 							this.displayDateModified = true;
     52 							break;
     53 						
     54 						case 'mergeedit':
     55 							this.displayFileName = true;
     56 							this.displayDateModified = true;
     57 							break;
     58 						
     59 						default:
     60 							throw ("Invalid mode '" + val + "' in storagefilebox.xml");
     61 					}
     62 					
     63 					this._mode = val;
     64 					document.getAnonymousNodes(this)[0].setAttribute('mode', val);
     65 				]]>
     66 				</setter>
     67 			</property>
     68 		</implementation>
     69 	</binding>
     70 </bindings>