Browse Source

Updated the documentation for cookie extension

Dennis Hernández 10 years ago
parent
commit
48cd4808dc

+ 0 - 22
docs/_i18n/en/documentation/table-options.md

@@ -407,28 +407,6 @@ The table options is defined in `jQuery.fn.bootstrapTable.defaults`.
         T/t: It will toggle the table view if the showToggle option is enabled
         P/p: It will fires the pagination switch if the showPaginationSwitch is enabled.</td>
     </tr>
-	<tr>
-        <td>stateSave</td>
-        <td>data-state-save</td>
-        <td>Boolean</td>
-        <td>false</td>
-        <td>True to save the state of a table (its paging position, ordering state, records per page).</td>
-    </tr>
-	<tr>
-        <td>stateSaveExpire</td>
-        <td>data-state-save-expire</td>
-        <td>String</td>
-        <td>'2h'</td>
-        <td>You must set this property if stateSave is enable to know when will expire the cookie created. Must use this format: 'number{letter}' like '2h', in the letter position
-		you can use: 's','mi','h','d','m','y', these means: 'seconds', 'minutes', 'hours', 'days', 'months', 'years'.</td>
-    </tr>
-	<tr>
-        <td>stateSaveIdTable</td>
-        <td>data-state-save-id-table</td>
-        <td>String</td>
-        <td>''</td>
-        <td>You must set this property if stateSave is enable to sets an unique cookie with an identifier for each table in your page or project. You must set this property because we need create cookies with an identifier.</td>
-    </tr>
     <tr>
         <td>rowStyle</td>
         <td>data-row-style</td>

+ 0 - 22
docs/_i18n/es/documentation/table-options.md

@@ -394,28 +394,6 @@ Las opciones de la tabla están definidas en `jQuery.fn.bootstrapTable.defaults`
         T/t: Se cambiará de vista si la opción showToggle está habilitada
         P/p: Se ocultara/mostrará la paginación si la opción showPaginationSwitch está habilitada.</td>
     </tr>
-	<tr>
-        <td>stateSave</td>
-        <td>data-state-save</td>
-        <td>Boolean</td>
-        <td>false</td>
-        <td>True para guardar el estado de la tabla (la posición de la paginación, ordenamiento, filas por página).</td>
-    </tr>
-	<tr>
-        <td>stateSaveExpire</td>
-        <td>data-state-save-expire</td>
-        <td>String</td>
-        <td>'2h'</td>
-        <td>Indique la propiedad para saber cuando expirará la cookie creada. Use este formato: 'numero{letra}' por ejemplo: '2h', en la posicióon de la letra
-		se puede usar: 's','mi','h','d','m','y', esto significa: 'segundos', 'minutos', 'horas', 'días', 'meses', 'años'.</td>
-    </tr>
-	<tr>
-        <td>stateSaveIdTable</td>
-        <td>data-state-save-id-table</td>
-        <td>String</td>
-        <td>''</td>
-        <td>Debe indicar la propiedad si la stateSave está habilitado. Este será el identificador para cookie guardada por tabla en su página o proyecto.</td>
-    </tr>
     <tr>
         <td>rowStyle</td>
         <td>data-row-style</td>

+ 2 - 0
src/extensions/cookie/bootstrap-table-cookie.js

@@ -1,5 +1,7 @@
 /**
  * @author: Dennis Hernández
+ * @webSite: http://djhvscf.github.io/Blog
+ *
  * @update zhixin wen <wenzhixin2010@gmail.com>
  */